On 22 August 2012 18:54, Marek Olšák <span dir="ltr"><<a href="mailto:maraeo@gmail.com" target="_blank">maraeo@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The original samples positions took samples outside of the pixel boundary,<br>
leading to dark pixels on the edge of the colorbuffer, among other things.<br></blockquote><div><br>Does this address the issues you were having with the error thresholds in the EXT_framebuffer_multisample piglit tests (Re: your Aug 13 email "[Piglit] [PATCH] ext_framebuffer_multisample: relax MSAA precision")?<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
src/gallium/drivers/r600/evergreen_state.c | 32 ++++++++++++++--------------<br>
1 file changed, 16 insertions(+), 16 deletions(-)<br>
<br>
diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c<br>
index 4e86693..e12706e 100644<br>
--- a/src/gallium/drivers/r600/evergreen_state.c<br>
+++ b/src/gallium/drivers/r600/evergreen_state.c<br>
@@ -1516,24 +1516,24 @@ static uint32_t evergreen_set_ms_pos(struct pipe_context *ctx, struct r600_pipe_<br>
static unsigned max_dist_4x = 6;<br>
/* 8xMSAA */<br>
static uint32_t eg_sample_locs_8x[] = {<br>
- FILL_SREG(-2, -5, 4, -4, 1, 6, -6, -2),<br>
- FILL_SREG( 6, 1, 0, 0, -5, 4, 7, -8),<br>
- FILL_SREG(-2, -5, 4, -4, 1, 6, -6, -2),<br>
- FILL_SREG( 6, 1, 0, 0, -5, 4, 7, -8),<br>
- FILL_SREG(-2, -5, 4, -4, 1, 6, -6, -2),<br>
- FILL_SREG( 6, 1, 0, 0, -5, 4, 7, -8),<br>
- FILL_SREG(-2, -5, 4, -4, 1, 6, -6, -2),<br>
- FILL_SREG( 6, 1, 0, 0, -5, 4, 7, -8),<br>
+ FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),<br>
+ FILL_SREG( 6, 0, 0, 0, -5, 3, 4, 4),<br>
+ FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),<br>
+ FILL_SREG( 6, 0, 0, 0, -5, 3, 4, 4),<br>
+ FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),<br>
+ FILL_SREG( 6, 0, 0, 0, -5, 3, 4, 4),<br>
+ FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),<br>
+ FILL_SREG( 6, 0, 0, 0, -5, 3, 4, 4),<br>
};<br>
static uint32_t cm_sample_locs_8x[] = {<br>
- FILL_SREG(-2, -5, 4, -4, 1, 6, -6, -2),<br>
- FILL_SREG(-2, -5, 4, -4, 1, 6, -6, -2),<br>
- FILL_SREG(-2, -5, 4, -4, 1, 6, -6, -2),<br>
- FILL_SREG(-2, -5, 4, -4, 1, 6, -6, -2),<br>
- FILL_SREG( 6, 1, 0, 0, -5, 4, 7, -8),<br>
- FILL_SREG( 6, 1, 0, 0, -5, 4, 7, -8),<br>
- FILL_SREG( 6, 1, 0, 0, -5, 4, 7, -8),<br>
- FILL_SREG( 6, 1, 0, 0, -5, 4, 7, -8),<br>
+ FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),<br>
+ FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),<br>
+ FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),<br>
+ FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),<br>
+ FILL_SREG( 6, 0, 0, 0, -5, 3, 4, 4),<br>
+ FILL_SREG( 6, 0, 0, 0, -5, 3, 4, 4),<br>
+ FILL_SREG( 6, 0, 0, 0, -5, 3, 4, 4),<br>
+ FILL_SREG( 6, 0, 0, 0, -5, 3, 4, 4),<br>
};<br>
static unsigned max_dist_8x = 8;<br>
/* 16xMSAA */<br>
<span><font color="#888888">--<br>
1.7.9.5<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br>