diff options
author | Brian Paul <brianp@vmware.com> | 2009-03-06 16:04:53 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-03-06 16:21:20 -0700 |
commit | 5cbd1170da0a902fdc9c460584bc503b0c4085a6 (patch) | |
tree | a55152e7e0cad99823d1ce7a68063c9800da2a06 /src/mesa/drivers/dri/i965/brw_context.h | |
parent | 99e4809f5d2126db36ec652e07bc8e77f1383a84 (diff) |
i965: avoid unnecessary calls to brw_wm_is_glsl()
This function scans the shader to see if it has any GLSL features like
conditionals and loops. Calling this during state validation is expensive.
Just call it when the shader is given to the driver and save the result.
There's some new/temporary assertions to be sure we don't get out of sync
on this.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 2e2eaf5721..af904ee6d6 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -164,6 +164,7 @@ struct brw_vertex_program { struct brw_fragment_program { struct gl_fragment_program program; GLuint id; /**< serial no. to identify frag progs, never re-used */ + GLboolean isGLSL; /**< really, any IF/LOOP/CONT/BREAK instructions */ }; |