Ilia Mirkin
2014-Apr-30 04:19 UTC
[Nouveau] [PATCH] 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 <imirkin at alum.mit.edu> --- Not sure why the sampler would care whether it's 2D or 2DRect in the first place. But I think the only difference between a non-linear RECT texture and a 2D one are the normalized coordinates, which are their own flag. src/gallium/drivers/nouveau/nvc0/nvc0_tex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c index 765cd2d..1b11bd0 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; -- 1.8.3.2
Apparently Analagous Threads
- [PATCH 23/23] nvc0: implement support for maxwell texture headers
- [PATCH 23/23] nvc0: implement support for maxwell texture headers
- [PATCH 23/23] nvc0: implement support for maxwell texture headers
- [PATCH] nvc0: add hardware ETC2 and ASTC support where possible
- [PATCH] nvc0: add hardware ETC2 and ASTC support where possible