{
struct tgsi_instruction_texture instruction_texture;
- instruction_texture.Texture = TGSI_TEXTURE_UNKNOWN;
+ instruction_texture.Texture = TGSI_BUFFER;
instruction_texture.NumOffsets = 0;
instruction_texture.Padding = 0;
const char *tgsi_texture_names[TGSI_TEXTURE_COUNT] =
{
- "UNKNOWN",
+ "BUFFER",
"1D",
"2D",
"3D",
return TGSI_TEXTURE_2D_ARRAY;
default:
assert(0 && "unexpected texture target");
- return TGSI_TEXTURE_UNKNOWN;
+ return 0;
}
}
NV50_IR_TEX_TARG_CASE(SHADOW2D_ARRAY, 2D_ARRAY_SHADOW);
NV50_IR_TEX_TARG_CASE(SHADOWCUBE, CUBE_SHADOW);
NV50_IR_TEX_TARG_CASE(SHADOWRECT, RECT_SHADOW);
-
- case TGSI_TEXTURE_UNKNOWN:
+ case TGSI_BUFFER:
+ return nv50_ir::TEX_TARGET_BUFFER;
default:
assert(!"invalid texture target");
return nv50_ir::TEX_TARGET_2D;
unsigned Padding : 8;
};
-#define TGSI_TEXTURE_UNKNOWN 0
+#define TGSI_BUFFER 0
#define TGSI_TEXTURE_1D 1
#define TGSI_TEXTURE_2D 2
#define TGSI_TEXTURE_3D 3