diff options
author | Kenneth Graunke <[email protected]> | 2018-07-16 16:41:23 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:07 -0800 |
commit | 841fc3e3caf5ffb88ae2e4d92adec9b355ce20b4 (patch) | |
tree | fd9bf56f86ee51bf35f19404fefdb9b4b57eee04 | |
parent | d223b316ad7feb2a29a2772392527013f3173b9a (diff) |
iris: record FS NOS
-rw-r--r-- | src/gallium/drivers/iris/iris_program.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_program.c b/src/gallium/drivers/iris/iris_program.c index 36b15cee395..eba97450c6e 100644 --- a/src/gallium/drivers/iris/iris_program.c +++ b/src/gallium/drivers/iris/iris_program.c @@ -73,6 +73,32 @@ iris_create_shader_state(struct pipe_context *ctx, memcpy(&ish->base.stream_output, &state->stream_output, sizeof(struct pipe_stream_output_info)); + switch (nir->info.stage) { + case MESA_SHADER_VERTEX: + // XXX: NOS + break; + case MESA_SHADER_TESS_CTRL: + // XXX: NOS + break; + case MESA_SHADER_TESS_EVAL: + // XXX: NOS + break; + case MESA_SHADER_GEOMETRY: + // XXX: NOS + break; + case MESA_SHADER_FRAGMENT: + ish->nos |= IRIS_NOS_FRAMEBUFFER | + IRIS_NOS_DEPTH_STENCIL_ALPHA | + IRIS_NOS_RASTERIZER | + IRIS_NOS_BLEND; + break; + case MESA_SHADER_COMPUTE: + // XXX: NOS + break; + default: + break; + } + return ish; } |