OSDN Git Service

anv/pipeline: Set up flat enables correctly
authorJason Ekstrand <jason.ekstrand@intel.com>
Sun, 10 Apr 2016 00:06:59 +0000 (17:06 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sun, 10 Apr 2016 00:06:59 +0000 (17:06 -0700)
src/intel/vulkan/genX_pipeline_util.h

index cd138df..654d2e0 100644 (file)
@@ -239,6 +239,7 @@ emit_3dstate_sbe(struct anv_pipeline *pipeline)
       .AttributeSwizzleEnable = true,
       .PointSpriteTextureCoordinateOrigin = UPPERLEFT,
       .NumberofSFOutputAttributes = wm_prog_data->num_varying_inputs,
+      .ConstantInterpolationEnable = wm_prog_data->flat_inputs,
 
 #if GEN_GEN >= 9
       .Attribute0ActiveComponentFormat = ACF_XYZW,