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

2012-01-05 Thread Eric Anholt
On Thu, 5 Jan 2012 13:54:41 -0800, Kenneth Graunke 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 07ee9f374f2946f852896e9

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

2012-01-05 Thread Kenneth Graunke
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