From: Kenneth Graunke Date: Mon, 16 Jul 2018 23:41:23 +0000 (-0700) Subject: iris: record FS NOS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=841fc3e3caf5ffb88ae2e4d92adec9b355ce20b4;p=mesa.git iris: record FS NOS --- 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; }