gallium/dri: Support DRI Image extension version 6
authorChristopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Tue, 26 Nov 2013 07:44:05 +0000 (18:44 +1100)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Tue, 10 Dec 2013 08:45:59 +0000 (09:45 +0100)
commit343133167f4ae127a375791790c982bde12025c4
tree7bc66249de94bd1c96973eaad2b4c0e48332a90c
parentbad8871e524cf518bc5da4ac52c1618a115054a7
gallium/dri: Support DRI Image extension version 6

v2: Pick out the correct gl_context pointer
v3: Don't leak pipe_resources on error path
    Set img->dri_format correctly

Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
src/gallium/state_trackers/dri/drm/dri2.c