mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 01:50:10 +01:00
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:
parent
536476f243
commit
0eb819a2d1
2 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue