mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	overlay: Set the text color in case we do not have RC6
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
		
							parent
							
								
									396fa1b3f5
								
							
						
					
					
						commit
						87b66f4cf0
					
				@ -611,6 +611,7 @@ static void show_gpu_freq(struct overlay_context *ctx, struct overlay_gpu_freq *
 | 
			
		||||
 | 
			
		||||
	if (has_power) {
 | 
			
		||||
		sprintf(buf, "Power: %llumW", (long long unsigned)gf->power.power_mW);
 | 
			
		||||
		cairo_set_source_rgba(ctx->cr, 1, 1, 1, 1);
 | 
			
		||||
		cairo_move_to(ctx->cr, PAD, y);
 | 
			
		||||
		cairo_show_text(ctx->cr, buf);
 | 
			
		||||
		y += 14;
 | 
			
		||||
@ -618,6 +619,7 @@ static void show_gpu_freq(struct overlay_context *ctx, struct overlay_gpu_freq *
 | 
			
		||||
 | 
			
		||||
	if (has_irqs) {
 | 
			
		||||
		sprintf(buf, "Interrupts: %llu", (long long unsigned)gf->irqs.delta);
 | 
			
		||||
		cairo_set_source_rgba(ctx->cr, 1, 1, 1, 1);
 | 
			
		||||
		cairo_move_to(ctx->cr, PAD, y);
 | 
			
		||||
		cairo_show_text(ctx->cr, buf);
 | 
			
		||||
		y += 14;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user