diff options
Diffstat (limited to 'src/gallium/state_trackers/dri/drm')
-rw-r--r-- | src/gallium/state_trackers/dri/drm/dri2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index afd91ee27a1..4c08a025ed2 100644 --- a/src/gallium/state_trackers/dri/drm/dri2.c +++ b/src/gallium/state_trackers/dri/drm/dri2.c @@ -316,6 +316,9 @@ dri2_allocate_buffer(__DRIscreen *sPriv, switch (format) { case 32: + pf = PIPE_FORMAT_B8G8R8A8_UNORM; + break; + case 24: pf = PIPE_FORMAT_B8G8R8X8_UNORM; break; case 16: |