diff options
author | Eric Anholt <[email protected]> | 2020-01-23 10:52:39 -0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-24 18:25:02 +0000 |
commit | 9c90ecf37ffab0978a983e49ecec48faebeb181a (patch) | |
tree | b2189e89ff2cd4a003b73638132289d4c0f23d63 /src/gallium/auxiliary/util | |
parent | 7342b859afb5a7e7f9fb1813e7ab3a55a1c8a704 (diff) |
gallium: Add a cap for enabling lowering of image load/store intrinsics.
The deref stuff is hard to handle in a backend supporting dynamic
indexing, while the lowering can easily turn that into the same kind of
dynamic indexing we do for textures, UBOs, and SSBOs.
Reviewed-by: Kenneth Graunke <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3728>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c index 821bb16d539..372094f77e6 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -407,6 +407,8 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen, case PIPE_CAP_OPENCL_INTEGER_FUNCTIONS: case PIPE_CAP_INTEGER_MULTIPLY_32X16: return 0; + case PIPE_CAP_NIR_IMAGES_AS_DEREF: + return 1; case PIPE_CAP_FRONTEND_NOOP: /* Enables INTEL_blackhole_render */ |