diff options
author | Eric Anholt <[email protected]> | 2010-10-18 15:43:20 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-10-19 10:49:20 -0700 |
commit | f30de6964018619658439216cd8bf9371ee6256d (patch) | |
tree | aa32889d7ef8827b804b881466a8651bb8673749 /src/mesa/drivers/dri/i965/brw_wm.h | |
parent | 2595589f1df351895bc5b1a92f19e995a19da15b (diff) |
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.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.h b/src/mesa/drivers/dri/i965/brw_wm.h index a094c45a7e0..99bd15c187f 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 <stdbool.h> #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 |