agx: Add image_load opcode
This is equivalent to texture_load but cannot be reordered, since it might be writeable. It also sets bit 43. This needs more investigation, but it fixes KHR-GLES31.core.shader_image_load_store.basic-glsl-misc-fs. Some sort of cache control bit. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24258>
This commit is contained in:

committed by
Marge Bot

parent
02b1ddeca6
commit
34c759467c
@@ -254,9 +254,10 @@ op("texture_sample",
|
||||
encoding_32 = (0x31, 0x7F, 8, 10), # XXX WRONG SIZE
|
||||
srcs = 6, imms = [DIM, LOD_MODE, MASK, SCOREBOARD, OFFSET, SHADOW,
|
||||
GATHER])
|
||||
op("texture_load",
|
||||
encoding_32 = (0x71, 0x7F, 8, 10), # XXX WRONG SIZE
|
||||
srcs = 6, imms = [DIM, LOD_MODE, MASK, SCOREBOARD, OFFSET])
|
||||
for memory, can_reorder in [("texture", True), ("image", False)]:
|
||||
op(f"{memory}_load", encoding_32 = (0x71, 0x7F, 8, 10), # XXX WRONG SIZE
|
||||
srcs = 6, imms = [DIM, LOD_MODE, MASK, SCOREBOARD, OFFSET],
|
||||
can_reorder = can_reorder)
|
||||
|
||||
# sources are base, index
|
||||
op("device_load",
|
||||
|
Reference in New Issue
Block a user