i965: Don't set iz_lookup the FS precompile's program key on Gen6+.
We already changed the actual program key builder to only set these bits on gen < 6; this patch just brings the precompile state back in line so it doesn't mismatch every time. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
98211d5af7
commit
a3685544e1
|
@ -2130,6 +2130,7 @@ bool
|
|||
brw_fs_precompile(struct gl_context *ctx, struct gl_shader_program *prog)
|
||||
{
|
||||
struct brw_context *brw = brw_context(ctx);
|
||||
struct intel_context *intel = &brw->intel;
|
||||
struct brw_wm_prog_key key;
|
||||
|
||||
if (!prog->_LinkedShaders[MESA_SHADER_FRAGMENT])
|
||||
|
@ -2142,6 +2143,7 @@ brw_fs_precompile(struct gl_context *ctx, struct gl_shader_program *prog)
|
|||
|
||||
memset(&key, 0, sizeof(key));
|
||||
|
||||
if (intel->gen < 6) {
|
||||
if (fp->UsesKill)
|
||||
key.iz_lookup |= IZ_PS_KILL_ALPHATEST_BIT;
|
||||
|
||||
|
@ -2151,6 +2153,7 @@ brw_fs_precompile(struct gl_context *ctx, struct gl_shader_program *prog)
|
|||
/* Just assume depth testing. */
|
||||
key.iz_lookup |= IZ_DEPTH_TEST_ENABLE_BIT;
|
||||
key.iz_lookup |= IZ_DEPTH_WRITE_ENABLE_BIT;
|
||||
}
|
||||
|
||||
key.vp_outputs_written |= BITFIELD64_BIT(FRAG_ATTRIB_WPOS);
|
||||
for (int i = 0; i < FRAG_ATTRIB_MAX; i++) {
|
||||
|
|
Loading…
Reference in New Issue