radeonsi: enable indirect adressing
authorChristian König <christian.koenig@amd.com>
Thu, 7 Mar 2013 11:00:18 +0000 (12:00 +0100)
committerChristian König <christian.koenig@amd.com>
Tue, 19 Mar 2013 14:16:18 +0000 (15:16 +0100)
Fixing 16 piglit tests.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/radeonsi/radeonsi_pipe.c
src/gallium/drivers/radeonsi/radeonsi_shader.c

index acf3e2d77a15d4638f6ed5dfa8e0e95adc1e1e11..2abfce476a25c7d002fa61408387daee3847ad92 100644 (file)
@@ -469,7 +469,7 @@ static int r600_get_shader_param(struct pipe_screen* pscreen, unsigned shader, e
        case PIPE_SHADER_CAP_INDIRECT_OUTPUT_ADDR:
        case PIPE_SHADER_CAP_INDIRECT_TEMP_ADDR:
        case PIPE_SHADER_CAP_INDIRECT_CONST_ADDR:
-               return 0;
+               return 1;
        case PIPE_SHADER_CAP_INTEGERS:
                return 1;
        case PIPE_SHADER_CAP_SUBROUTINES:
index 589bd826a3958753f6b018387ac49bda0f255455..110bfb0de2aac951d38664df67b3215fa44462ad 100644 (file)
@@ -996,11 +996,6 @@ int si_pipe_shader_create(
        bld_base = &si_shader_ctx.radeon_bld.soa.bld_base;
 
        tgsi_scan_shader(sel->tokens, &shader_info);
-       if (shader_info.indirect_files != 0) {
-               fprintf(stderr, "Indirect addressing not fully handled yet\n");
-               return -ENOSYS;
-       }
-
        shader->shader.uses_kill = shader_info.uses_kill;
        bld_base->info = &shader_info;
        bld_base->emit_fetch_funcs[TGSI_FILE_CONSTANT] = fetch_constant;