zink: export PIPE_CAP_PROGRAMMABLE_SAMPLE_LOCATIONS

dynamic state required because pipeline hashing for this would be too pita

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11189>
This commit is contained in:
Mike Blumenkrantz 2021-04-02 17:40:55 -04:00 committed by Marge Bot
parent 1ea682ed5a
commit 02293316b3

View file

@ -307,6 +307,9 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
case PIPE_CAP_OCCLUSION_QUERY:
return 1;
case PIPE_CAP_PROGRAMMABLE_SAMPLE_LOCATIONS:
return screen->info.have_EXT_sample_locations && screen->info.have_EXT_extended_dynamic_state;
case PIPE_CAP_QUERY_TIME_ELAPSED:
return screen->timestamp_valid_bits > 0;