[Mesa-dev] [PATCH 3/4] i965/fs_surface_builder: Only apply predicate to components that exist

2015-09-14 Thread Jason Ekstrand
In certain conditions, we have to do bounds-checking in the shader for image_load_store. The way this works for image loads is that we do the load anyway and then emit a series of slecects, one per component, that gives us 0 or the loaded value depending on whether or not you're in bounds. Howeve

Re: [Mesa-dev] [PATCH 3/4] i965/fs_surface_builder: Only apply predicate to components that exist

2015-09-15 Thread Francisco Jerez
Jason Ekstrand writes: > In certain conditions, we have to do bounds-checking in the shader for > image_load_store. The way this works for image loads is that we do the > load anyway and then emit a series of slecects, one per component, that Strictly speaking the load is predicated so it's not

Re: [Mesa-dev] [PATCH 3/4] i965/fs_surface_builder: Only apply predicate to components that exist

2015-09-15 Thread Jason Ekstrand
On Sep 15, 2015 6:39 AM, "Francisco Jerez" wrote: > > Jason Ekstrand writes: > > > In certain conditions, we have to do bounds-checking in the shader for > > image_load_store. The way this works for image loads is that we do the > > load anyway and then emit a series of slecects, one per compone

Re: [Mesa-dev] [PATCH 3/4] i965/fs_surface_builder: Only apply predicate to components that exist

2015-09-15 Thread Jason Ekstrand
On Tue, Sep 15, 2015 at 6:39 AM, Francisco Jerez wrote: > Jason Ekstrand writes: > >> In certain conditions, we have to do bounds-checking in the shader for >> image_load_store. The way this works for image loads is that we do the >> load anyway and then emit a series of slecects, one per compon