From 223831ca146bc3aca615542794a7c3800ccbcc6f Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Fri, 11 May 2012 13:36:46 +0100 Subject: gallium/tgsi: Redefine the TGSI_TEXTURE_UNKNOWN texture target. Some code relies on the existing of an invalid texture target. It seems safer to bring it back than to deal with unintended consequences. This partially reverts commit a4ebb04214bab1cd9bd41967232ec89441e31744. Reviewed-by: Brian Paul --- src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp index 955eb92ec3c..ba08493c282 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp @@ -349,6 +349,8 @@ static nv50_ir::TexTarget translateTexture(uint tex) NV50_IR_TEX_TARG_CASE(SHADOWRECT, RECT_SHADOW); case TGSI_BUFFER: return nv50_ir::TEX_TARGET_BUFFER; + + case TGSI_TEXTURE_UNKNOWN: default: assert(!"invalid texture target"); return nv50_ir::TEX_TARGET_2D; -- cgit v1.2.3