freedreno/a3xx/compiler: prepare for new compiler
[mesa.git] / src / gallium / drivers / freedreno / a3xx / fd3_program.h
index 4aeeb2e30062c8be3ef222f3b0693bb881151c31..c781dfe4be98921a57fe1b77ef3142a39df9f8b6 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "freedreno_context.h"
 
-#include "ir-a3xx.h"
+#include "ir3.h"
 #include "disasm.h"
 
 typedef uint16_t fd3_semantic;  /* semantic name + index */
@@ -43,6 +43,16 @@ fd3_semantic_name(uint8_t name, uint16_t index)
        return (name << 8) | (index & 0xff);
 }
 
+static inline uint8_t sem2name(fd3_semantic sem)
+{
+       return sem >> 8;
+}
+
+static inline uint16_t sem2idx(fd3_semantic sem)
+{
+       return sem & 0xff;
+}
+
 struct fd3_shader_stateobj {
        enum shader_t type;