ir3: Handle gl_FragStencilRefARB

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5936>
This commit is contained in:
Connor Abbott 2020-07-16 15:47:27 +02:00 committed by Marge Bot
parent 981608ad04
commit aeca92ed79
2 changed files with 4 additions and 1 deletions

View File

@ -3209,6 +3209,9 @@ setup_output(struct ir3_context *ctx, nir_variable *out)
case FRAG_RESULT_SAMPLE_MASK:
so->writes_smask = true;
break;
case FRAG_RESULT_STENCIL:
so->writes_stencilref = true;
break;
default:
slot += out->data.index; /* For dual-src blend */
if (slot >= FRAG_RESULT_DATA0)

View File

@ -564,7 +564,7 @@ struct ir3_shader_variant {
uint8_t regid;
bool half : 1;
} outputs[32 + 2]; /* +POSITION +PSIZE */
bool writes_pos, writes_smask, writes_psize;
bool writes_pos, writes_smask, writes_psize, writes_stencilref;
/* Size in dwords of all outputs for VS, size of entire patch for HS. */
uint32_t output_size;