diff options
author | Marek Olšák <[email protected]> | 2016-01-02 23:09:58 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-01-13 12:27:28 +0100 |
commit | 4ea0febcb005d6447a6ae4d19ca1de8de44f3da9 (patch) | |
tree | dcf235c738cde69b56ad8bffa9cea1ffd3d71d1b /src/gallium/drivers/radeonsi/si_state_shaders.c | |
parent | caf3c2abea0ba15a7913bf8130d26820035b0910 (diff) |
radeonsi: move POSITION and FACE fragment shader inputs to system values
And FACE becomes integer instead of float.
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state_shaders.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_shaders.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index 460dda51b97..35b226f0157 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -390,7 +390,7 @@ static void si_shader_ps(struct si_shader *shader) unsigned spi_shader_col_format = 0, cb_shader_mask = 0; unsigned colors_written, export_16bpc; unsigned num_sgprs, num_user_sgprs; - unsigned spi_baryc_cntl = 0; + unsigned spi_baryc_cntl = S_0286E0_FRONT_FACE_ALL_BITS(1); uint64_t va; bool has_centroid; @@ -979,12 +979,6 @@ static void si_emit_spi_map(struct si_context *sctx, struct r600_atom *atom) unsigned index = psinfo->input_semantic_index[i]; unsigned interpolate = psinfo->input_interpolate[i]; unsigned param_offset = ps->ps_input_param_offset[i]; - - if (name == TGSI_SEMANTIC_POSITION || - name == TGSI_SEMANTIC_FACE) - /* Read from preloaded VGPRs, not parameters */ - continue; - bcolor: tmp = 0; |