diff options
author | Marek Olšák <[email protected]> | 2017-02-16 00:47:48 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-02-18 01:22:08 +0100 |
commit | 41a2157a689838e4c97d5a703bc2aeaf5a5e1b48 (patch) | |
tree | af948fb80cec189577f893cfdb5a0f23e8f50497 /src/gallium/drivers/radeonsi/si_shader.c | |
parent | f246ae1ee9b543ccd878a60a9cdb6f25d66a8d4e (diff) |
radeonsi: make fix_fetch an array of uint8_t
so that we can add 3-component fallbacks.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index cfff54a5e00..8b9fed9fb8c 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -366,7 +366,7 @@ static void declare_input_vs( ctx->param_vertex_index0 + input_index); - fix_fetch = (ctx->shader->key.mono.vs.fix_fetch >> (4 * input_index)) & 0xf; + fix_fetch = ctx->shader->key.mono.vs.fix_fetch[input_index]; /* Do multiple loads for double formats. */ if (fix_fetch == SI_FIX_FETCH_RGB_64_FLOAT) { @@ -6270,7 +6270,11 @@ static void si_dump_shader_key(unsigned shader, struct si_shader_key *key, fprintf(f, " part.vs.epilog.export_prim_id = %u\n", key->part.vs.epilog.export_prim_id); fprintf(f, " as_es = %u\n", key->as_es); fprintf(f, " as_ls = %u\n", key->as_ls); - fprintf(f, " mono.vs.fix_fetch = 0x%"PRIx64"\n", key->mono.vs.fix_fetch); + + fprintf(f, " mono.vs.fix_fetch = {"); + for (i = 0; i < SI_MAX_ATTRIBS; i++) + fprintf(f, !i ? "%u" : ", %u", key->mono.vs.fix_fetch[i]); + fprintf(f, "}\n"); break; case PIPE_SHADER_TESS_CTRL: |