diff options
author | Ilia Mirkin <[email protected]> | 2014-04-29 21:51:42 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-05-02 12:01:35 -0400 |
commit | 1baf77dbe89e58c83287aa1662d64bafc727d565 (patch) | |
tree | 83da5c0a1212e9ebcb5adf8e382c6e479675796a /src/gallium/drivers/nouveau | |
parent | cd064c6a25a8b8d645d35b0f14d933fa09ddbb23 (diff) |
nvc0: treat non-linear 2DRect textures the same as 2D
This fixes textureGather(2DRect) piglit tests, and does not appear to
have any adverse effects.
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nvc0_tex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c index 765cd2d2bab..1b11bd0ba88 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c @@ -173,7 +173,7 @@ nvc0_create_texture_view(struct pipe_context *pipe, tic[2] |= NV50_TIC_2_TARGET_2D; break; case PIPE_TEXTURE_RECT: - tic[2] |= NV50_TIC_2_TARGET_RECT; + tic[2] |= NV50_TIC_2_TARGET_2D; break; case PIPE_TEXTURE_3D: tic[2] |= NV50_TIC_2_TARGET_3D; |