diff options
author | Ville Syrjälä <[email protected]> | 2014-04-24 14:11:44 +0300 |
---|---|---|
committer | Ville Syrjälä <[email protected]> | 2014-05-01 23:56:34 +0300 |
commit | eb502c31a0ed994258fca0c9d2fef6810dc64233 (patch) | |
tree | c40aca7376f9b8d4e4f0376d6d8ef1675ec557a3 /src/mesa/main/texstore.c | |
parent | c1d4d4999303f9167b20f4e0674b9436e6295cf7 (diff) |
i965: Fix format of private renderbuffers
intel_alloc_renderbuffer_storage() will clobber rb->Format which was
already set up by intel_create_renderbuffer(). This causes the driver
to potentially create the depth buffer in the wrong format.
In practice this makes the depth buffer Z24 even if the visual has
depthBits==16.
The incorrect depth buffer format doesn't seem to cause any actual
problems in i965, but it seems like we should fix it anyway. I see
Z16 has been more or less deprecated in the driver except the for
the depthBits==16 case. But if we want to use Z24 even in that
case (not sure it's really legal?) it would look better if the
code made that decision explicitly rather than relying on the
format to get magically overwritten by the renderbuffer code.
Reviewed-by: Eric Anholt <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Diffstat (limited to 'src/mesa/main/texstore.c')
0 files changed, 0 insertions, 0 deletions