summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-08-23 00:39:01 +0200
committerMarek Olšák <[email protected]>2012-08-27 04:31:00 +0200
commit3ac54ac2c85d3ed035a9f1cbcc7de7010c609cfb (patch)
tree6dc52d473be4b9e479d02ac2de68279705fe60a8 /src
parent1cfec6e2c8f15b2448e0297f4ca975ed7ab0c505 (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/evergreen_state.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c
index 4e86693be45..e12706e856b 100644
--- a/src/gallium/drivers/r600/evergreen_state.c
+++ b/src/gallium/drivers/r600/evergreen_state.c
@@ -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 */