Mesa (main): anv: fix invalid utrace memcpy l3 config on gfx < 11
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue May 3 13:40:42 UTC 2022
Module: Mesa
Branch: main
Commit: 4efc99747247520f186365c530a4f955cbc1fb79
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4efc99747247520f186365c530a4f955cbc1fb79
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Tue May 3 12:19:43 2022 +0300
anv: fix invalid utrace memcpy l3 config on gfx < 11
device->l3_config is only valid on Gfx11+
This only fixes using GPU_TRACE=1
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Fixes: 02a4d622ed0 ("anv: expose a couple of emit helper to build utrace buffer copies")
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16291>
---
src/intel/vulkan/genX_gpu_memcpy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/vulkan/genX_gpu_memcpy.c b/src/intel/vulkan/genX_gpu_memcpy.c
index 53d0f9eb399..1ec94158c4d 100644
--- a/src/intel/vulkan/genX_gpu_memcpy.c
+++ b/src/intel/vulkan/genX_gpu_memcpy.c
@@ -255,7 +255,7 @@ genX(emit_so_memcpy_init)(struct anv_memcpy_state *state,
ps.PipelineSelection = _3D;
}
- emit_common_so_memcpy(batch, device, device->l3_config);
+ emit_common_so_memcpy(batch, device, cfg);
}
void
More information about the mesa-commit
mailing list