diff options
author | Brian Paul <[email protected]> | 2012-01-16 09:05:05 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-01-18 10:44:05 -0700 |
commit | 7628696004515074594d4fdac4e422c81c86b32c (patch) | |
tree | 2ba5f3a61c20bd068e95d2280e2537c8f570b696 /src/glx/indirect_window_pos.c | |
parent | 481011ffcd33f344d68fef3334686922e6cd79f9 (diff) |
mesa: fix tex format selection for GL_R32F and other R/G float formats
The i965 driver advertises GL_ARB_texture_float and GL_ARB_texture_rg
support but the ctx->TextureFormatSupported[] table entries for
MESA_FORMAT_R_FLOAT32 and MESA_FORMAT_RGBA_FLOAT32 are false on gen 4
hardware. So the case for GL_R32F would fail and we'd print an
implementation error.
This patch adds more Mesa tex format options for GL_R32F and other R/G
formats so we fall back to 16-bit formats when 32-bit formats aren't
available.
Eric made the same fix in commit 6216a5b4 for the non R/G formats.
v2: try 16-bit formats before 32-bit formats and try RG formats before
RGBA where possible.
This should fix https://bugs.freedesktop.org/show_bug.cgi?id=44039
NOTE: This is a candidate for the 8.0 and 7.11 branches.
Reviewed-by: José Fonseca <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/glx/indirect_window_pos.c')
0 files changed, 0 insertions, 0 deletions