summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_screen.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2023-02-02 10:45:20 -0500
committerMarge Bot <emma+marge@anholt.net>2023-02-05 13:32:02 +0000
commit2127287d4dd413c2b5c0b91e44ef15eb2cfa293f (patch)
treeee871d0075ab3c97f6eed1e37df3c922d19130e0 /src/gallium/auxiliary/util/u_screen.c
parent7f98fcae52c7925ba8429039742d45e581887627 (diff)
gallium: add PIPE_CAP_NULL_TEXTURES
this allows drivers to indicate that they support sampling from null textures instead of using fallback textures for now, this is only used for depth-based fallback textures Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21072>
Diffstat (limited to 'src/gallium/auxiliary/util/u_screen.c')
-rw-r--r--src/gallium/auxiliary/util/u_screen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c
index f0e1b7e599d..c66bf9c9b70 100644
--- a/src/gallium/auxiliary/util/u_screen.c
+++ b/src/gallium/auxiliary/util/u_screen.c
@@ -524,6 +524,7 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
return 64;
case PIPE_CAP_VALIDATE_ALL_DIRTY_STATES:
+ case PIPE_CAP_NULL_TEXTURES:
return 0;
default: