pan/midgard: Rename ld_global_id -> ld_compute_id
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 6 Aug 2019 20:46:56 +0000 (13:46 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 12 Aug 2019 19:43:02 +0000 (12:43 -0700)
It's used for more general loads within a compute shader.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard.h
src/panfrost/midgard/midgard_ops.c

index ba7d421..4f6a58e 100644 (file)
@@ -398,8 +398,8 @@ typedef enum {
 
         midgard_op_st_cubemap_coords = 0x0E,
 
-        /* Used in OpenCL. Probably can ld other things as well */
-        midgard_op_ld_global_id = 0x10,
+        /* Loads a global/local/group ID, depending on arguments */
+        midgard_op_ld_compute_id = 0x10,
 
         /* The L/S unit can do perspective division a clock faster than the ALU
          * if you're lucky. Put the vec4 in r27, and call with 0x24 as the
index 37aa69f..172a50f 100644 (file)
@@ -171,7 +171,7 @@ struct mir_op_props alu_opcode_props[256] = {
 
 const char *load_store_opcode_names[256] = {
         [midgard_op_st_cubemap_coords] = "st_cubemap_coords",
-        [midgard_op_ld_global_id] = "ld_global_id",
+        [midgard_op_ld_compute_id] = "ld_compute_id",
         [midgard_op_ldst_perspective_division_z] = "ldst_perspective_division_z",
         [midgard_op_ldst_perspective_division_w] = "ldst_perspective_division_w",