summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_wm.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-10-18 15:43:20 -0700
committerEric Anholt <eric@anholt.net>2010-10-19 10:49:20 -0700
commitf30de6964018619658439216cd8bf9371ee6256d (patch)
treeaa32889d7ef8827b804b881466a8651bb8673749 /src/mesa/drivers/dri/i965/brw_wm.h
parent2595589f1df351895bc5b1a92f19e995a19da15b (diff)
downloadexternal_mesa3d-f30de6964018619658439216cd8bf9371ee6256d.zip
external_mesa3d-f30de6964018619658439216cd8bf9371ee6256d.tar.gz
external_mesa3d-f30de6964018619658439216cd8bf9371ee6256d.tar.bz2
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.h3
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 a094c45..99bd15c 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