intel: fix generation shader on Gfx9

This probably interacts badly with the LLVM17+ opaque pointer
workaround. Hopefully I can move this all over Alyssa's pass.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: b52e25d3a8 ("anv: rewrite internal shaders using OpenCL")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12413
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
(cherry picked from commit 58b604abdf)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33113>
This commit is contained in:
Lionel Landwerlin
2025-01-09 14:13:18 +02:00
committed by Dylan Baker
parent b86b4b85e4
commit ea2f4877ab
2 changed files with 3 additions and 3 deletions

View File

@@ -1704,7 +1704,7 @@
"description": "intel: fix generation shader on Gfx9",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "b52e25d3a8eee702ff5d21e4cdb9a4dc0736282a",
"notes": null

View File

@@ -9,9 +9,9 @@ void genX(write_3DSTATE_VERTEX_BUFFERS)(global void *dst_ptr,
{
struct GENX(3DSTATE_VERTEX_BUFFERS) v = {
GENX(3DSTATE_VERTEX_BUFFERS_header),
.DWordLength = 1 + (buffer_count * 4) -
GENX(3DSTATE_VERTEX_BUFFERS_length_bias),
};
v.DWordLength = 1 + (buffer_count * 4) -
GENX(3DSTATE_VERTEX_BUFFERS_length_bias);
GENX(3DSTATE_VERTEX_BUFFERS_pack)(dst_ptr, &v);
}