diff options
author | Anuj Phogat <[email protected]> | 2019-06-26 13:18:38 -0700 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2019-06-28 14:02:13 -0700 |
commit | db093d028c6383d8905620da1eef244db0b3b1ce (patch) | |
tree | 5b3ff8966260457250b80f621c6bec29bef78a22 | |
parent | 9753d7381c217ab989fd4589d43c30463394669f (diff) |
i965/icl: Fix WA_1606682166
An earlier change was setting the SamplerCount = 0 for Gen 11
under #if GEN_GEN < 7. This commit fixes the problem.
This WA has also been added to the linux kernel.
Signed-off-by: Anuj Phogat <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/genX_state_upload.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/genX_state_upload.c b/src/mesa/drivers/dri/i965/genX_state_upload.c index f182683d8a8..2baeb3b4bb1 100644 --- a/src/mesa/drivers/dri/i965/genX_state_upload.c +++ b/src/mesa/drivers/dri/i965/genX_state_upload.c @@ -1943,8 +1943,7 @@ genX(upload_wm)(struct brw_context *brw) if (wm_prog_data->base.use_alt_mode) wm.FloatingPointMode = FLOATING_POINT_MODE_Alternate; - /* WA_1606682166 */ - wm.SamplerCount = (GEN_GEN == 5 || GEN_GEN == 11) ? + wm.SamplerCount = GEN_GEN == 5 ? 0 : DIV_ROUND_UP(stage_state->sampler_count, 4); wm.BindingTableEntryCount = |