Re: [Mesa-dev] [PATCH] i965: Make convert_attr_sources_to_hw_regs handle stride == 0.

2015-11-12 Thread Matt Turner
On Thu, Nov 12, 2015 at 12:18 PM, Kenneth Graunke wrote: > This makes expressions like component(fs_reg(ATTR, n), 7) get a proper > <0,1,0> region instead of the invalid <0,8,0>. > > Nobody uses this today, but I plan to. This seems like the right thing to do, but I'd

[Mesa-dev] [PATCH] i965: Make convert_attr_sources_to_hw_regs handle stride == 0.

2015-11-12 Thread Kenneth Graunke
This makes expressions like component(fs_reg(ATTR, n), 7) get a proper <0,1,0> region instead of the invalid <0,8,0>. Nobody uses this today, but I plan to. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs.cpp | 16 +++- 1 file changed, 11