dri: Add an image creation with modifiers
authorBen Widawsky <ben@bwidawsk.net>
Fri, 4 Nov 2016 18:31:15 +0000 (11:31 -0700)
committerBen Widawsky <ben@bwidawsk.net>
Wed, 15 Mar 2017 17:36:04 +0000 (10:36 -0700)
commitd075cce25888f276986bd78c74bc3e029cb29e46
treee58c1c160a5f60360c07d0e2c86b54a243a8e03b
parent0550f3d6313a95552da0be4a52f42fb99ea2c136
dri: Add an image creation with modifiers

Modifiers will be obtained or guessed by the client and passed in during
image creation/import. In guessing, a client might decide to simply pass
along all known modifiers

This requires bumping the DRIimage version.

As of this patch, the modifiers aren't plumbed all the way down, this
patch simply makes sure the interface level stuff is correct.

v2: Don't allow usage + modifiers

v3: Make NAND actually NAND. Bug introduced in v2. (Jason)

v4:
- s/obtains/obtained (Jason)
- Pull out i965 imlemnentation into a later patch (Emil)

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> (v1)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Acked-by: Daniel Stone <daniels@collabora.com>
include/GL/internal/dri_interface.h