mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
svga: fix shared memory index
State tracker only declares one shared memory for GLSL and all references to the shared memory are with index 0. So fix the shared memory index in the declaration to use 0 index. Fixes spec@arb_compute_shader@execution@shared* Reviewed-by: Neha Bhende <bhenden@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16930>
This commit is contained in:
parent
d9aedaa795
commit
704c9b2825
1 changed files with 3 additions and 5 deletions
|
|
@ -6388,12 +6388,10 @@ emit_memory_declarations(struct svga_shader_emitter_v10 *emit)
|
|||
emit_dword(emit, opcode0.value);
|
||||
emit_dword(emit, operand0.value);
|
||||
|
||||
/* In current state tracker, TGSI shader declares only one shared memory
|
||||
* TODO: To fix TGSI shader in state tracker to get all shared memory
|
||||
* declarations and then fix following indexing. For now, default index
|
||||
* is 1 as per translated TGSI shader
|
||||
/* Current state tracker only declares one shared memory for GLSL.
|
||||
* Use index 0 for this shared memory.
|
||||
*/
|
||||
emit_dword(emit, 1);
|
||||
emit_dword(emit, 0);
|
||||
emit_dword(emit, emit->key.cs.mem_size); /* byte Count */
|
||||
end_emit_instruction(emit);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue