static void
print_texture_op(int format)
{
- /* Act like a modifier */
- printf(".");
+ /* Act like a bare name, like ESSL functions */
switch (format) {
- DEFINE_CASE(TEXTURE_OP_NORMAL, "normal");
- DEFINE_CASE(TEXTURE_OP_TEXEL_FETCH, "texelfetch");
+ DEFINE_CASE(TEXTURE_OP_NORMAL, "texture");
+ DEFINE_CASE(TEXTURE_OP_LOD, "textureLod");
+ DEFINE_CASE(TEXTURE_OP_TEXEL_FETCH, "texelFetch");
default:
printf("op_%d", format);
{
midgard_texture_word *texture = (midgard_texture_word *) word;
- /* Instruction family, like ALU words have theirs */
- printf("texture");
-
/* Broad category of texture operation in question */
print_texture_op(texture->op);
#define REG_TEX_BASE 28
/* Texture opcodes... maybe? */
-#define TEXTURE_OP_NORMAL 0x11
-#define TEXTURE_OP_TEXEL_FETCH 0x14
+#define TEXTURE_OP_NORMAL 0x11 /* texture */
+#define TEXTURE_OP_LOD 0x12 /* textureLod */
+#define TEXTURE_OP_TEXEL_FETCH 0x14 /* texelFetch */
/* Texture format types, found in format */
#define TEXTURE_CUBE 0x00