diff options
author | Henri Verbeet <[email protected]> | 2011-01-07 17:06:11 +0100 |
---|---|---|
committer | Henri Verbeet <[email protected]> | 2011-01-07 18:21:12 +0100 |
commit | 97e2aa31c6e735d5f6bd1d67a4dd8da2605aedc8 (patch) | |
tree | a9ba9b42066a353cdef536a022969a6bc8746928 /src/gallium/drivers/r600/r600_shader.c | |
parent | 2a134534a60f1aff463918c6b27dea5741cf247f (diff) |
r600g: Split ALU clauses based on used constant cache lines.
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index bb5038c49b0..5c089f48896 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -540,7 +540,9 @@ int r600_shader_from_tgsi(const struct tgsi_token *tokens, struct r600_shader *s ctx.file_offset[TGSI_FILE_TEMPORARY] = ctx.file_offset[TGSI_FILE_OUTPUT] + ctx.info.file_count[TGSI_FILE_OUTPUT]; - ctx.file_offset[TGSI_FILE_CONSTANT] = 128; + /* Outside the GPR range. This will be translated to one of the + * kcache banks later. */ + ctx.file_offset[TGSI_FILE_CONSTANT] = 512; ctx.file_offset[TGSI_FILE_IMMEDIATE] = 253; ctx.temp_reg = ctx.file_offset[TGSI_FILE_TEMPORARY] + |