From f30de6964018619658439216cd8bf9371ee6256d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 18 Oct 2010 15:43:20 -0700 Subject: i965: Disable thread dispatch when the FS doesn't do any work. This should reduce the cost of generating shadow maps, for example. No performance difference measured in nexuiz, though it does trigger this path. --- src/mesa/drivers/dri/i965/brw_wm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/drivers/dri/i965/brw_wm.h') diff --git a/src/mesa/drivers/dri/i965/brw_wm.h b/src/mesa/drivers/dri/i965/brw_wm.h index a094c45a7e..99bd15c187 100644 --- a/src/mesa/drivers/dri/i965/brw_wm.h +++ b/src/mesa/drivers/dri/i965/brw_wm.h @@ -33,6 +33,7 @@ #ifndef BRW_WM_H #define BRW_WM_H +#include #include "program/prog_instruction.h" #include "brw_context.h" @@ -473,4 +474,6 @@ GLboolean brw_link_shader(struct gl_context *ctx, struct gl_shader_program *prog struct gl_shader *brw_new_shader(struct gl_context *ctx, GLuint name, GLuint type); struct gl_shader_program *brw_new_shader_program(struct gl_context *ctx, GLuint name); +bool brw_color_buffer_write_enabled(struct brw_context *brw); + #endif -- cgit v1.2.3