diff options
author | Timothy Arceri <[email protected]> | 2016-10-20 15:27:35 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-10-26 14:29:36 +1100 |
commit | 5346630593bec80efa732c40b63e0e95a00af074 (patch) | |
tree | c321e7220a3a7b08b2b70f86f84bcccbb5cbaba2 /src/mesa/swrast/s_fragprog.c | |
parent | b4b450a5cbd22690b221d0252e6d11f4c0e02ab8 (diff) |
r200/glsl/st/mesa: use common outputs written field
And set outputs written directly in shader_info.
st/mesa changes where:
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/swrast/s_fragprog.c')
-rw-r--r-- | src/mesa/swrast/s_fragprog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_fragprog.c b/src/mesa/swrast/s_fragprog.c index bb601db327c..9bd357d559f 100644 --- a/src/mesa/swrast/s_fragprog.c +++ b/src/mesa/swrast/s_fragprog.c @@ -204,7 +204,7 @@ run_program(struct gl_context *ctx, SWspan *span, GLuint start, GLuint end) { SWcontext *swrast = SWRAST_CONTEXT(ctx); const struct gl_program *program = ctx->FragmentProgram._Current; - const GLbitfield64 outputsWritten = program->OutputsWritten; + const GLbitfield64 outputsWritten = program->info.outputs_written; struct gl_program_machine *machine = &swrast->FragProgMachine; GLuint i; @@ -271,12 +271,12 @@ _swrast_exec_fragment_program( struct gl_context *ctx, SWspan *span ) run_program(ctx, span, 0, span->end); - if (program->OutputsWritten & BITFIELD64_BIT(FRAG_RESULT_COLOR)) { + if (program->info.outputs_written & BITFIELD64_BIT(FRAG_RESULT_COLOR)) { span->interpMask &= ~SPAN_RGBA; span->arrayMask |= SPAN_RGBA; } - if (program->OutputsWritten & BITFIELD64_BIT(FRAG_RESULT_DEPTH)) { + if (program->info.outputs_written & BITFIELD64_BIT(FRAG_RESULT_DEPTH)) { span->interpMask &= ~SPAN_Z; span->arrayMask |= SPAN_Z; } |