mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-10-01 21:59:35 +00:00
vk: Fixup for cs_scatter job
- Access to the stencil output has to be atomic as each 'word' is shared among 4 adjacent texels - TODO: Can be optimized using mirrored buffer views
This commit is contained in:
parent
05e5e6058f
commit
74ad525566
1 changed files with 2 additions and 2 deletions
|
@ -529,7 +529,7 @@ namespace vk
|
||||||
" stencil_offset = (index / 4);\n"
|
" stencil_offset = (index / 4);\n"
|
||||||
" stencil_shift = (index % 4) * 8;\n"
|
" stencil_shift = (index % 4) * 8;\n"
|
||||||
" stencil = (value & 0xFF) << stencil_shift;\n"
|
" stencil = (value & 0xFF) << stencil_shift;\n"
|
||||||
" data[stencil_offset + s_offset] |= stencil;\n";
|
" atomicOr(data[stencil_offset + s_offset], stencil);\n";
|
||||||
|
|
||||||
cs_shuffle_base::build("");
|
cs_shuffle_base::build("");
|
||||||
}
|
}
|
||||||
|
@ -548,7 +548,7 @@ namespace vk
|
||||||
" stencil_offset = (index / 4);\n"
|
" stencil_offset = (index / 4);\n"
|
||||||
" stencil_shift = (index % 4) * 8;\n"
|
" stencil_shift = (index % 4) * 8;\n"
|
||||||
" stencil = (value & 0xFF) << stencil_shift;\n"
|
" stencil = (value & 0xFF) << stencil_shift;\n"
|
||||||
" data[stencil_offset + s_offset] |= stencil;\n";
|
" atomicOr(data[stencil_offset + s_offset], stencil);\n";
|
||||||
|
|
||||||
cs_shuffle_base::build("");
|
cs_shuffle_base::build("");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue