v3d: Add check to see if v3d supports cpu_queue
Add support to check if v3d supports cpu_queue. This will be used in future patches to enable support for PIPE_CAP_QUERY_TIMESTAMP & PIPE_CAP_QUERY_TIME_ELAPSED. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32547>
This commit is contained in:
committed by
Marge Bot
parent
94da1edbe4
commit
5e728db32a
@@ -966,6 +966,7 @@ v3d_screen_create(int fd, const struct pipe_screen_config *config,
|
||||
screen->has_cache_flush =
|
||||
v3d_has_feature(screen, DRM_V3D_PARAM_SUPPORTS_CACHE_FLUSH);
|
||||
screen->has_perfmon = v3d_has_feature(screen, DRM_V3D_PARAM_SUPPORTS_PERFMON);
|
||||
screen->has_cpu_queue = v3d_has_feature(screen, DRM_V3D_PARAM_SUPPORTS_CPU_QUEUE);
|
||||
|
||||
v3d_fence_screen_init(screen);
|
||||
|
||||
|
||||
@@ -86,6 +86,7 @@ struct v3d_screen {
|
||||
bool has_cache_flush;
|
||||
bool has_perfmon;
|
||||
bool nonmsaa_texture_size_limit;
|
||||
bool has_cpu_queue;
|
||||
|
||||
#if USE_V3D_SIMULATOR
|
||||
struct v3d_simulator_file *sim_file;
|
||||
|
||||
Reference in New Issue
Block a user