i965: Store the dispatch width in the WM compile struct.

I'll be using this in merging brw_wm_emit.c and brw_wm_glsl.c
This commit is contained in:
Eric Anholt 2009-08-11 16:02:54 -07:00
parent 536476f243
commit 0eb819a2d1
2 changed files with 3 additions and 0 deletions

View file

@ -171,9 +171,11 @@ static void do_wm_prog( struct brw_context *brw,
* differently from "simple" shaders.
*/
if (fp->isGLSL) {
c->dispatch_width = 8;
brw_wm_glsl_emit(brw, c);
}
else {
c->dispatch_width = 16;
brw_wm_non_glsl_emit(brw, c);
}

View file

@ -260,6 +260,7 @@ struct brw_wm_compile {
GLuint tmp_index;
GLuint tmp_max;
GLuint subroutines[BRW_WM_MAX_SUBROUTINE];
GLuint dispatch_width;
/** we may need up to 3 constants per instruction (if use_const_buffer) */
struct {