Mesa (glsl2): ir_to_mesa: Support texture rectangle targets
Ian Romanick
idr at kemper.freedesktop.org
Mon Aug 16 16:50:54 UTC 2010
Module: Mesa
Branch: glsl2
Commit: 0bf63733e54b47daf9f50c32a1fca4039c82def2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0bf63733e54b47daf9f50c32a1fca4039c82def2
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Mon Aug 16 09:39:58 2010 -0700
ir_to_mesa: Support texture rectangle targets
---
src/mesa/program/ir_to_mesa.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 2208bc1..b8a35ce 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -2090,6 +2090,9 @@ ir_to_mesa_visitor::visit(ir_texture *ir)
case GLSL_SAMPLER_DIM_CUBE:
inst->tex_target = TEXTURE_CUBE_INDEX;
break;
+ case GLSL_SAMPLER_DIM_RECT:
+ inst->tex_target = TEXTURE_RECT_INDEX;
+ break;
default:
assert(!"FINISHME: other texture targets");
}
More information about the mesa-commit
mailing list