diff options
author | Kenneth Graunke <[email protected]> | 2013-01-23 15:27:39 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-01-25 09:04:25 -0500 |
commit | 9db2098d18dd28cbb4f9f98ec9e8f9d579608c38 (patch) | |
tree | 9c5183267a16a1737de8f9c019ca9060f25d6cbd /src/mesa/drivers/dri/i965/brw_state.h | |
parent | 7638ede4ceaa11d0c1209785144b5d7af4696c58 (diff) |
i965: Use GL_RED for DEPTH_TEXTURE_MODE in ES 3.0 for unsized formats.
Khronos has apparently decided that depth textures with sized formats
(allowed with ARB_internalformat_query or ES 3.0) should be treated as
GL_RED, while unsized formats (an existing feature) should be treated
as GL_INTENSITY for compatibility with ES 2.0.
Ian is proposing changes to ARB_internalformat_query which will make
this actually legal and consistent.
A similar problem exists with GL 4.2, but we're going to ignore that
for the time being.
Tested on Ivybridge: no Piglit regressions; fixes 4 es3conform tests:
- depth_texture_fbo
- depth_texture_fbo_clear
- depth_texture_teximage
- depth_texture_texsubimage
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_state.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h index c6b8219e6bb..d9708c14bb7 100644 --- a/src/mesa/drivers/dri/i965/brw_state.h +++ b/src/mesa/drivers/dri/i965/brw_state.h @@ -202,7 +202,8 @@ GLuint translate_tex_format(gl_format mesa_format, GLenum depth_mode, GLenum srgb_decode); -int brw_get_texture_swizzle(const struct gl_texture_object *t); +int brw_get_texture_swizzle(const struct gl_context *ctx, + const struct gl_texture_object *t); /* gen7_wm_surface_state.c */ uint32_t gen7_surface_tiling_mode(uint32_t tiling); |