From: Dave Airlie Date: Thu, 23 Feb 2017 04:24:20 +0000 (+1000) Subject: radv: enable location at sample when persample is forced. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58c97a0791bf71b31546b13c2b491a636555749c;p=mesa.git radv: enable location at sample when persample is forced. Reviewed-by: Bas Nieuwenhuizen Signed-off-by: Dave Airlie --- diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index dd6deef17c8..5b7564c6399 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -685,6 +685,9 @@ radv_emit_fragment_shader(struct radv_cmd_buffer *cmd_buffer, radeon_set_context_reg(cmd_buffer->cs, R_0286D0_SPI_PS_INPUT_ADDR, ps->config.spi_ps_input_addr); + if (ps->info.fs.force_persample) + spi_baryc_cntl |= S_0286E0_POS_FLOAT_LOCATION(2); + radeon_set_context_reg(cmd_buffer->cs, R_0286D8_SPI_PS_IN_CONTROL, S_0286D8_NUM_INTERP(ps->info.fs.num_interp));