Mesa (main): aco: Add G16 opcodes.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jul 26 17:24:26 UTC 2022


Module: Mesa
Branch: main
Commit: c1cf0688c99ac936c042c2c6613033f7b90b90bd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c1cf0688c99ac936c042c2c6613033f7b90b90bd

Author: Georg Lehmann <dadschoorse at gmail.com>
Date:   Sat Jun  4 19:50:00 2022 +0200

aco: Add G16 opcodes.

Signed-off-by: Georg Lehmann <dadschoorse at gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16979>

---

 src/amd/compiler/aco_opcodes.py | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/amd/compiler/aco_opcodes.py b/src/amd/compiler/aco_opcodes.py
index cb3c731a5b7..7555877d4c2 100644
--- a/src/amd/compiler/aco_opcodes.py
+++ b/src/amd/compiler/aco_opcodes.py
@@ -1485,6 +1485,21 @@ IMAGE_SAMPLE = {
 for (code, name) in IMAGE_SAMPLE:
    opcode(name, code, code, code, Format.MIMG, InstrClass.VMem)
 
+IMAGE_SAMPLE_G16 = {
+   (0xa2, "image_sample_d_g16"),
+   (0xa3, "image_sample_d_cl_g16"),
+   (0xaa, "image_sample_c_d_g16"),
+   (0xab, "image_sample_c_d_cl_g16"),
+   (0xb2, "image_sample_d_o_g16"),
+   (0xb3, "image_sample_d_cl_o_g16"),
+   (0xba, "image_sample_c_d_o_g16"),
+   (0xbb, "image_sample_c_d_cl_o_g16"),
+}
+
+# (gfx6, gfx7, gfx8, gfx9, gfx10, name) = (-1, -1, -1, -1, code, name)
+for (code, name) in IMAGE_SAMPLE_G16:
+   opcode(name, -1, -1, code, Format.MIMG, InstrClass.VMem)
+
 IMAGE_GATHER4 = {
    (0x40, "image_gather4"),
    (0x41, "image_gather4_cl"),



More information about the mesa-commit mailing list