diff options
author | Jordan Justen <[email protected]> | 2014-09-02 22:50:44 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2014-09-05 22:15:06 -0700 |
commit | 000a9ee1ba5b1ac1278af6f8d20c8873f9ea8701 (patch) | |
tree | 84975f260c78a571864d6bcb1686470a2ffe95ce | |
parent | 2d6d3461d307636b61d0f483677aaad11d1fd42a (diff) |
i965/fs: Add stage variable to fs_generator
This will allow for stage specific code paths.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.h | 1 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index 506f3ad4b39..846efc7d3c0 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.h +++ b/src/mesa/drivers/dri/i965/brw_fs.h @@ -679,6 +679,7 @@ private: struct gl_context *ctx; struct brw_compile *p; + gl_shader_stage stage; const struct brw_wm_prog_key *const key; struct brw_wm_prog_data *prog_data; diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp index d860700d6d8..558e4931b10 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp @@ -45,9 +45,10 @@ fs_generator::fs_generator(struct brw_context *brw, bool runtime_check_aads_emit, bool debug_flag) - : brw(brw), key(key), prog_data(prog_data), prog(prog), fp(fp), - runtime_check_aads_emit(runtime_check_aads_emit), debug_flag(debug_flag), - mem_ctx(mem_ctx) + : brw(brw), stage(MESA_SHADER_FRAGMENT), key(key), + prog_data(prog_data), prog(prog), fp(fp), + runtime_check_aads_emit(runtime_check_aads_emit), + debug_flag(debug_flag), mem_ctx(mem_ctx) { ctx = &brw->ctx; |