mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
r600g: fix evergreen 8x MSAA sample positions
The original samples positions took samples outside of the pixel boundary, leading to dark pixels on the edge of the colorbuffer, among other things. Reviewed-by: Jerome Glisse <jglisse@redhat.com>
This commit is contained in:
parent
1cfec6e2c8
commit
3ac54ac2c8
1 changed files with 16 additions and 16 deletions
|
|
@ -1516,24 +1516,24 @@ static uint32_t evergreen_set_ms_pos(struct pipe_context *ctx, struct r600_pipe_
|
|||
static unsigned max_dist_4x = 6;
|
||||
/* 8xMSAA */
|
||||
static uint32_t eg_sample_locs_8x[] = {
|
||||
FILL_SREG(-2, -5, 4, -4, 1, 6, -6, -2),
|
||||
FILL_SREG( 6, 1, 0, 0, -5, 4, 7, -8),
|
||||
FILL_SREG(-2, -5, 4, -4, 1, 6, -6, -2),
|
||||
FILL_SREG( 6, 1, 0, 0, -5, 4, 7, -8),
|
||||
FILL_SREG(-2, -5, 4, -4, 1, 6, -6, -2),
|
||||
FILL_SREG( 6, 1, 0, 0, -5, 4, 7, -8),
|
||||
FILL_SREG(-2, -5, 4, -4, 1, 6, -6, -2),
|
||||
FILL_SREG( 6, 1, 0, 0, -5, 4, 7, -8),
|
||||
FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),
|
||||
FILL_SREG( 6, 0, 0, 0, -5, 3, 4, 4),
|
||||
FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),
|
||||
FILL_SREG( 6, 0, 0, 0, -5, 3, 4, 4),
|
||||
FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),
|
||||
FILL_SREG( 6, 0, 0, 0, -5, 3, 4, 4),
|
||||
FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),
|
||||
FILL_SREG( 6, 0, 0, 0, -5, 3, 4, 4),
|
||||
};
|
||||
static uint32_t cm_sample_locs_8x[] = {
|
||||
FILL_SREG(-2, -5, 4, -4, 1, 6, -6, -2),
|
||||
FILL_SREG(-2, -5, 4, -4, 1, 6, -6, -2),
|
||||
FILL_SREG(-2, -5, 4, -4, 1, 6, -6, -2),
|
||||
FILL_SREG(-2, -5, 4, -4, 1, 6, -6, -2),
|
||||
FILL_SREG( 6, 1, 0, 0, -5, 4, 7, -8),
|
||||
FILL_SREG( 6, 1, 0, 0, -5, 4, 7, -8),
|
||||
FILL_SREG( 6, 1, 0, 0, -5, 4, 7, -8),
|
||||
FILL_SREG( 6, 1, 0, 0, -5, 4, 7, -8),
|
||||
FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),
|
||||
FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),
|
||||
FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),
|
||||
FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),
|
||||
FILL_SREG( 6, 0, 0, 0, -5, 3, 4, 4),
|
||||
FILL_SREG( 6, 0, 0, 0, -5, 3, 4, 4),
|
||||
FILL_SREG( 6, 0, 0, 0, -5, 3, 4, 4),
|
||||
FILL_SREG( 6, 0, 0, 0, -5, 3, 4, 4),
|
||||
};
|
||||
static unsigned max_dist_8x = 8;
|
||||
/* 16xMSAA */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue