Mesa (gallium-rect-textures): nv50: use NV50TIC_0_2_TARGET_RECT

Luca Barbieri lb at kemper.freedesktop.org
Thu Aug 19 14:51:49 UTC 2010


Module: Mesa
Branch: gallium-rect-textures
Commit: b6d7b8421957b8716e0ee31355557dc878e42d8d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b6d7b8421957b8716e0ee31355557dc878e42d8d

Author: Luca Barbieri <luca at luca-barbieri.com>
Date:   Wed Aug 18 17:29:59 2010 +0200

nv50: use NV50TIC_0_2_TARGET_RECT

---

 src/gallium/drivers/nv50/nv50_tex.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/nv50/nv50_tex.c b/src/gallium/drivers/nv50/nv50_tex.c
index 4db53f7..d41d9c5 100644
--- a/src/gallium/drivers/nv50/nv50_tex.c
+++ b/src/gallium/drivers/nv50/nv50_tex.c
@@ -131,9 +131,11 @@ nv50_tex_construct(struct nv50_sampler_view *view)
 		tic[2] |= NV50TIC_0_2_TARGET_1D;
 		break;
 	case PIPE_TEXTURE_2D:
-	case PIPE_TEXTURE_RECT:
 		tic[2] |= NV50TIC_0_2_TARGET_2D;
 		break;
+	case PIPE_TEXTURE_RECT:
+		tic[2] |= NV50TIC_0_2_TARGET_RECT;
+		break;
 	case PIPE_TEXTURE_3D:
 		tic[2] |= NV50TIC_0_2_TARGET_3D;
 		break;




More information about the mesa-commit mailing list