i965/fs: Import image access validity checks

Graphics / Mesa 3D Graphics Library / Mesa - Francisco Jerez [riseup.net] - 11 August 2015 07:07 UTC

These utility functions check whether an image access is valid. According to the spec an invalid image access should have no effect on the image and yield well-defined results. Typically the hardware implements correct bounds and surface checking by itself, but in some cases (typed atomics on IVB and untyped messages elsewhere) we need to implement it in software to work around lacking hardware support.

v2: Drop VEC4 suport.
v3: Rebase.

fb19df7 i965/fs: Import image access validity checks.
.../drivers/dri/i965/brw_fs_surface_builder.cpp | 55 ++++++++++++++++++++
1 file changed, 55 insertions(+)

Upstream: cgit.freedesktop.org


  • Share