radv: set spi_baryc_cntl.pos_float_location to 0
authorDave Airlie <airlied@redhat.com>
Thu, 24 Nov 2016 00:35:30 +0000 (00:35 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 29 Nov 2016 22:48:23 +0000 (22:48 +0000)
This fixes:
dEQP-VK.pipeline.multisample_interpolation.offset_interpolate_at_sample_position.*

This should probably be 2 when sample shading is enabled, but I'm
not sure.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c

index 0eda0bceb492387397f4b8226b9118c7d00a081a..ddffa27a11d94956f507ba7b282579bb0e36de62 100644 (file)
@@ -463,7 +463,7 @@ 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);
 
-       spi_baryc_cntl |= S_0286E0_POS_FLOAT_LOCATION(2);
+       spi_baryc_cntl |= S_0286E0_POS_FLOAT_LOCATION(0);
        radeon_set_context_reg(cmd_buffer->cs, R_0286D8_SPI_PS_IN_CONTROL,
                               S_0286D8_NUM_INTERP(ps->info.fs.num_interp));