[Mesa-dev] [PATCH] i965/vs: Fix invalid array access in copy propagation.

Eric Anholt eric at anholt.net
Thu Jan 5 19:31:22 PST 2012


On Thu,  5 Jan 2012 13:54:41 -0800, Kenneth Graunke <kenneth at whitecape.org> wrote:
> Accessing virtual_grf_reg_map[inst->dst.reg] is invalid if
> inst->dst.file != GRF.  Since is_direct_copy already implies a GRF
> destination, we can just move the check earlier.
> 
> Fixes a regression in commit 07ee9f374f2946f852896e9264c7fa83eafc3f16.
> 
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44302
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120105/cf655e46/attachment.pgp>


More information about the mesa-dev mailing list