nv50: use NV50TIC_0_2_TARGET_RECT
authorLuca Barbieri <luca@luca-barbieri.com>
Wed, 18 Aug 2010 15:29:59 +0000 (17:29 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Fri, 20 Aug 2010 10:04:10 +0000 (12:04 +0200)
src/gallium/drivers/nv50/nv50_tex.c

index 4db53f7ec23136b39c7c9769df958c307535a356..d41d9c51029a3821ff23dd3fc3114f6d6ab6785a 100644 (file)
@@ -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;