diff options
author | Dave Airlie <[email protected]> | 2010-08-02 14:53:31 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-08-02 14:56:20 +1000 |
commit | 01984cf34fa4e6d564d06a126795468b5718ecb0 (patch) | |
tree | 9ae818e1a7bfa314c95d31e78e25c6c7ec18268b /src/gallium/drivers | |
parent | 919750a55771cfd731e2f90d1385cbb4265e4cf4 (diff) |
r600g: set correct tex coord type for rect textures.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 8159cefd943..0582839905a 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -952,10 +952,12 @@ static int tgsi_tex(struct r600_shader_ctx *ctx) tex.src_sel_y = 1; tex.src_sel_z = 2; tex.src_sel_w = 3; - tex.coord_type_x = 1; - tex.coord_type_y = 1; - tex.coord_type_z = 1; - tex.coord_type_w = 1; + if (inst->Texture.Texture != TGSI_TEXTURE_RECT) { + tex.coord_type_x = 1; + tex.coord_type_y = 1; + tex.coord_type_z = 1; + tex.coord_type_w = 1; + } return r600_bc_add_tex(ctx->bc, &tex); } |