From: Jason Ekstrand Date: Tue, 20 Oct 2015 01:15:45 +0000 (-0700) Subject: anv/compiler: Remove more pre-SNB shader key setup X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=611ace68617dd12f91f8ab67e199c0cf9ba4d41b;p=mesa.git anv/compiler: Remove more pre-SNB shader key setup --- diff --git a/src/vulkan/anv_compiler.cpp b/src/vulkan/anv_compiler.cpp index 0fbc2d1ecba..14d3fad23e7 100644 --- a/src/vulkan/anv_compiler.cpp +++ b/src/vulkan/anv_compiler.cpp @@ -294,23 +294,6 @@ void brw_wm_populate_key(struct brw_context *brw, ctx->Multisample.Enabled && (fp->program.Base.SystemValuesRead & SYSTEM_BIT_SAMPLE_ID); - /* BRW_NEW_VUE_MAP_GEOM_OUT */ - if (brw->gen < 6 || _mesa_bitcount_64(fp->program.Base.InputsRead & - BRW_FS_VARYING_INPUT_MASK) > 16) - key->input_slots_valid = brw->vue_map_geom_out.slots_valid; - - - /* _NEW_COLOR | _NEW_BUFFERS */ - /* Pre-gen6, the hardware alpha test always used each render - * target's alpha to do alpha test, as opposed to render target 0's alpha - * like GL requires. Fix that by building the alpha test into the - * shader, and we'll skip enabling the fixed function alpha test. - */ - if (brw->gen < 6 && ctx->DrawBuffer->_NumColorDrawBuffers > 1 && ctx->Color.AlphaEnabled) { - key->alpha_test_func = ctx->Color.AlphaFunc; - key->alpha_test_ref = ctx->Color.AlphaRef; - } - /* The unique fragment program ID */ key->program_string_id = fp->id;