diff options
author | Marek Olšák <[email protected]> | 2018-09-28 20:38:26 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-10-16 15:28:22 -0400 |
commit | 41a6c3de1fb4b955217b0f53b3f301d236acebb3 (patch) | |
tree | 1cc25899afb619cc9e5aa183096ce6c026c74b68 /src/gallium/drivers/radeonsi/si_pipe.h | |
parent | b94824c787ba747060f359391ddf454a15843e63 (diff) |
radeonsi: don't re-upload the sample position constant buffer repeatedly
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h index ff11eab0224..93082e262d6 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.h +++ b/src/gallium/drivers/radeonsi/si_pipe.h @@ -965,11 +965,14 @@ struct si_context { /* MSAA sample locations. * The first index is the sample index. * The second index is the coordinate: X, Y. */ - float sample_locations_1x[1][2]; - float sample_locations_2x[2][2]; - float sample_locations_4x[4][2]; - float sample_locations_8x[8][2]; - float sample_locations_16x[16][2]; + struct { + float x1[1][2]; + float x2[2][2]; + float x4[4][2]; + float x8[8][2]; + float x16[16][2]; + } sample_positions; + struct pipe_resource *sample_pos_buffer; /* Misc stats. */ unsigned num_draw_calls; |