Skip to content

Commit

Permalink
Hide intel GPU generated event row when we don't have any
Browse files Browse the repository at this point in the history
Having this empty row for captures done on AMD or when i915-perf
support disabled doesn't make sense.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
  • Loading branch information
llandwerlin-intel authored and mikesart committed Apr 12, 2020
1 parent 8d51017 commit d9a6ba7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gpuvis_graphrows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ void GraphRows::init( TraceEvents &trace_events )

// Intel gpu events
{
push_row( "i915-perf", LOC_TYPE_i915Perf, trace_events.m_i915.perf_locs.size() );
if ( !trace_events.m_i915.perf_locs.empty() )
push_row( "i915-perf", LOC_TYPE_i915Perf, trace_events.m_i915.perf_locs.size() );

for ( auto &req_locs : trace_events.m_i915.req_locs.m_locs.m_map )
{
Expand Down

0 comments on commit d9a6ba7

Please sign in to comment.