<div dir="ltr">While i never got this error in the first place, I can attest that it certainly hasn't broken any use in paraview, so...<br><br>Tested-by: Chuck Atkins <<a href="mailto:chuck.atkins@kitware.com">chuck.atkins@kitware.com</a>><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">- Chuck<br></div></div></div>
<br><div class="gmail_quote">On Tue, Apr 19, 2016 at 1:45 AM, Markus Wick <span dir="ltr"><<a href="mailto:markus@selfnet.de" target="_blank">markus@selfnet.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Am 2016-04-19 01:12, schrieb Tim Rowley:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Code was using an incorrect address for the base pointer.<br>
</blockquote>
<br></span>
Tested-by: Markus Wick <<a href="mailto:markus@selfnet.de" target="_blank">markus@selfnet.de</a>><div class="HOEnZb"><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=94979" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=94979</a><br>
---<br>
src/gallium/drivers/swr/swr_state.cpp | 6 ++++--<br>
1 file changed, 4 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/gallium/drivers/swr/swr_state.cpp<br>
b/src/gallium/drivers/swr/swr_state.cpp<br>
index ded51a9..0e0979d 100644<br>
--- a/src/gallium/drivers/swr/swr_state.cpp<br>
+++ b/src/gallium/drivers/swr/swr_state.cpp<br>
@@ -1138,7 +1138,8 @@ swr_update_derived(struct pipe_context *pipe,<br>
pDC->num_constantsVS[i] = cb->buffer_size;<br>
if (cb->buffer)<br>
pDC->constantVS[i] =<br>
- (const float *)((const uint8_t *)cb->buffer +<br>
cb->buffer_offset);<br>
+ (const float *)(swr_resource(cb->buffer)->swr.pBaseAddress +<br>
+ cb->buffer_offset);<br>
else {<br>
/* Need to copy these constants to scratch space */<br>
if (cb->user_buffer && cb->buffer_size) {<br>
@@ -1163,7 +1164,8 @@ swr_update_derived(struct pipe_context *pipe,<br>
pDC->num_constantsFS[i] = cb->buffer_size;<br>
if (cb->buffer)<br>
pDC->constantFS[i] =<br>
- (const float *)((const uint8_t *)cb->buffer +<br>
cb->buffer_offset);<br>
+ (const float *)(swr_resource(cb->buffer)->swr.pBaseAddress +<br>
+ cb->buffer_offset);<br>
else {<br>
/* Need to copy these constants to scratch space */<br>
if (cb->user_buffer && cb->buffer_size) {<br>
</blockquote>
<br></div></div><div class="HOEnZb"><div class="h5">
_______________________________________________<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="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</div></div></blockquote></div><br></div>