mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-04 05:45:03 -06: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
@ -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…
Reference in New Issue
Block a user