spirv: Identify non-temporal memory access
Map it to the existing ACCESS_STREAM_CACHE_POLICY access mode. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12945>
This commit is contained in:
committed by
Marge Bot
parent
47f7b262e1
commit
895cfca641
@@ -2247,10 +2247,14 @@ vtn_get_mem_operands(struct vtn_builder *b, const uint32_t *w, unsigned count,
|
||||
static enum gl_access_qualifier
|
||||
spv_access_to_gl_access(SpvMemoryAccessMask access)
|
||||
{
|
||||
if (access & SpvMemoryAccessVolatileMask)
|
||||
return ACCESS_VOLATILE;
|
||||
unsigned result = 0;
|
||||
|
||||
return 0;
|
||||
if (access & SpvMemoryAccessVolatileMask)
|
||||
result |= ACCESS_VOLATILE;
|
||||
if (access & SpvMemoryAccessNontemporalMask)
|
||||
result |= ACCESS_STREAM_CACHE_POLICY;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user