mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
i965/fs: Add stage variable to fs_generator
This will allow for stage specific code paths. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
2d6d3461d3
commit
000a9ee1ba
2 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue