Mesa (master): i965/icl: Apply WA_1606682166 to compute workloads

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 28 21:14:01 UTC 2019


Module: Mesa
Branch: master
Commit: 804d1bd111fdb5f3cf49959a0122b547a231b0f3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=804d1bd111fdb5f3cf49959a0122b547a231b0f3

Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Fri Jun 28 09:24:29 2019 -0700

i965/icl: Apply WA_1606682166 to compute workloads

We missed the workaround for compute workloads in earlier patches.

Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/mesa/drivers/dri/i965/genX_state_upload.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/genX_state_upload.c b/src/mesa/drivers/dri/i965/genX_state_upload.c
index 2baeb3b4bb1..ddb418201d5 100644
--- a/src/mesa/drivers/dri/i965/genX_state_upload.c
+++ b/src/mesa/drivers/dri/i965/genX_state_upload.c
@@ -4366,7 +4366,9 @@ genX(upload_cs_state)(struct brw_context *brw)
    const struct GENX(INTERFACE_DESCRIPTOR_DATA) idd = {
       .KernelStartPointer = brw->cs.base.prog_offset,
       .SamplerStatePointer = stage_state->sampler_offset,
-      .SamplerCount = DIV_ROUND_UP(CLAMP(stage_state->sampler_count, 0, 16), 4),
+      /* WA_1606682166 */
+      .SamplerCount = GEN_GEN == 11 ? 0 :
+                      DIV_ROUND_UP(CLAMP(stage_state->sampler_count, 0, 16), 4),
       .BindingTablePointer = stage_state->bind_bo_offset,
       .ConstantURBEntryReadLength = cs_prog_data->push.per_thread.regs,
       .NumberofThreadsinGPGPUThreadGroup = cs_prog_data->threads,




More information about the mesa-commit mailing list