From 841fc3e3caf5ffb88ae2e4d92adec9b355ce20b4 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 16 Jul 2018 16:41:23 -0700 Subject: iris: record FS NOS --- src/gallium/drivers/iris/iris_program.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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; } -- cgit v1.2.3