aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state_msaa.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-09-28 20:38:26 -0400
committerMarek Olšák <[email protected]>2018-10-16 15:28:22 -0400
commit41a6c3de1fb4b955217b0f53b3f301d236acebb3 (patch)
tree1cc25899afb619cc9e5aa183096ce6c026c74b68 /src/gallium/drivers/radeonsi/si_state_msaa.c
parentb94824c787ba747060f359391ddf454a15843e63 (diff)
radeonsi: don't re-upload the sample position constant buffer repeatedly
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state_msaa.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_state_msaa.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_msaa.c b/src/gallium/drivers/radeonsi/si_state_msaa.c
index f9387e75ed1..b741bcadec8 100644
--- a/src/gallium/drivers/radeonsi/si_state_msaa.c
+++ b/src/gallium/drivers/radeonsi/si_state_msaa.c
@@ -198,14 +198,14 @@ void si_init_msaa_functions(struct si_context *sctx)
sctx->b.get_sample_position = si_get_sample_position;
- si_get_sample_position(&sctx->b, 1, 0, sctx->sample_locations_1x[0]);
+ si_get_sample_position(&sctx->b, 1, 0, sctx->sample_positions.x1[0]);
for (i = 0; i < 2; i++)
- si_get_sample_position(&sctx->b, 2, i, sctx->sample_locations_2x[i]);
+ si_get_sample_position(&sctx->b, 2, i, sctx->sample_positions.x2[i]);
for (i = 0; i < 4; i++)
- si_get_sample_position(&sctx->b, 4, i, sctx->sample_locations_4x[i]);
+ si_get_sample_position(&sctx->b, 4, i, sctx->sample_positions.x4[i]);
for (i = 0; i < 8; i++)
- si_get_sample_position(&sctx->b, 8, i, sctx->sample_locations_8x[i]);
+ si_get_sample_position(&sctx->b, 8, i, sctx->sample_positions.x8[i]);
for (i = 0; i < 16; i++)
- si_get_sample_position(&sctx->b, 16, i, sctx->sample_locations_16x[i]);
+ si_get_sample_position(&sctx->b, 16, i, sctx->sample_positions.x16[i]);
}