diff options
author | Alex Deucher <[email protected]> | 2010-11-19 15:51:24 -0500 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2010-11-19 15:51:24 -0500 |
commit | 04ffbe1ac6a82ac5cce843afa15ffdfa4ef78103 (patch) | |
tree | 676077396f299cfdb8276be14ac6f07b7b74ad6c /src/gallium/drivers/r600/r600_shader.c | |
parent | 4afd0683854ac1cfbe7118232b5e344c83d4b0c2 (diff) |
r600g: use full range of VS resources for vertex samplers
Now that we have fetch shaders, the full range of VS resources
can be used for sampling.
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index a2b516f185b..3e42309bde0 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -2028,8 +2028,6 @@ static int tgsi_tex(struct r600_shader_ctx *ctx) tex.inst = opcode; tex.sampler_id = ctx->file_offset[inst->Src[1].Register.File] + inst->Src[1].Register.Index; tex.resource_id = tex.sampler_id; - if (ctx->shader->processor_type == TGSI_PROCESSOR_VERTEX) - tex.resource_id += PIPE_MAX_ATTRIBS; tex.src_gpr = src_gpr; tex.dst_gpr = ctx->file_offset[inst->Dst[0].Register.File] + inst->Dst[0].Register.Index; tex.dst_sel_x = (inst->Dst[0].Register.WriteMask & 1) ? 0 : 7; |