mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 14:28:05 +02:00
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:
parent
c773794943
commit
c314bc2ab9
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue