radv: fix checking if RGP is enabled with others tracing tools
This is a bitmask. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25275>
This commit is contained in:
committed by
Marge Bot
parent
c773794943
commit
c314bc2ab9
@@ -85,7 +85,7 @@ typedef void *drmDevicePtr;
|
||||
static bool
|
||||
radv_spm_trace_enabled(struct radv_instance *instance)
|
||||
{
|
||||
return (instance->vk.trace_mode == RADV_TRACE_MODE_RGP) &&
|
||||
return (instance->vk.trace_mode & RADV_TRACE_MODE_RGP) &&
|
||||
debug_get_bool_option("RADV_THREAD_TRACE_CACHE_COUNTERS", true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user