diff options
author | Marek Olšák <[email protected]> | 2017-06-09 17:25:29 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-12 18:24:37 +0200 |
commit | 7b2240ac9ce3ba9bd86f4ae8aac53af8878c0b10 (patch) | |
tree | 89173bb1853a167e8832c716ba6157bf30eda790 /src/gallium/drivers/radeonsi/si_state_shaders.c | |
parent | 1621b33d73894e7c0c3e2b7252adfcd107d7ebd5 (diff) |
radeonsi: use uint32_t to declare si_shader_key.opt.kill_outputs
the next patch will benefit from this
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state_shaders.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_shaders.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index 07e6a428575..15e46b5a5e8 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -1241,9 +1241,10 @@ static void si_shader_selector_key_hw_vs(struct si_context *sctx, inputs_read = ps->inputs_read; } - uint64_t linked = outputs_written & inputs_read; + uint64_t kill_outputs = ~(outputs_written & inputs_read) & outputs_written; - key->opt.kill_outputs = ~linked & outputs_written; + key->opt.kill_outputs[0] = kill_outputs; + key->opt.kill_outputs[1] = kill_outputs >> 32; } /* Compute the key for the hw shader variant */ |