diff options
author | Jason Ekstrand <[email protected]> | 2018-08-16 14:31:28 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-08-29 14:04:02 -0500 |
commit | 48e4fa7dd8c4b777989c4a731d6ac54cfe6c24eb (patch) | |
tree | 77c34d4c05d012072f410f406475f07db8428e57 /src/intel/compiler | |
parent | 42891438990ce170a2ce08f71a1360842d5897a1 (diff) |
glsl/link,i965: Make ImageAccess four-state
The GLSL spec allows you to set both the "readonly" and "writeonly"
qualifiers on images to indicate that it can only be used with
imageSize. However, we had no way of representing this int he linked
shader and flagged it as GL_READ_ONLY. This is good from a "does it use
this buffer?" perspective but not from a format and access lowering
perspective. By using GL_NONE for if "readonly" and "writeonly" are
both set, we can detect this case in the driver and handle it correctly.
Nothing currently relies on the type of surface in the "readonly" +
"writeonly" case but that's about to change. i965 is the only drier
which uses the ImageAccess field and gl_bindless_image::access is
currently unused.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/compiler')
0 files changed, 0 insertions, 0 deletions