mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
i965: Fix texture swizzling on Broadwell.
Like Haswell, we do this in SURFACE_STATE rather than shader workarounds. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
1110ba4c08
commit
5720832f23
1 changed files with 1 additions and 1 deletions
|
|
@ -331,7 +331,7 @@ brw_populate_sampler_prog_key_data(struct gl_context *ctx,
|
|||
/* Haswell handles texture swizzling as surface format overrides
|
||||
* (except for GL_ALPHA); all other platforms need MOVs in the shader.
|
||||
*/
|
||||
if (!brw->is_haswell || alpha_depth)
|
||||
if (alpha_depth || (brw->gen < 8 && !brw->is_haswell))
|
||||
key->swizzles[s] = brw_get_texture_swizzle(ctx, t);
|
||||
|
||||
if (img->InternalFormat == GL_YCBCR_MESA) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue