shader: use TGSI_INTERPOLATE_CONSTANT as applicable

Use the symbolic macros instead of the actual value.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
macos/master
Emil Velikov 6 years ago committed by Emil Velikov
parent 5a0d3f071e
commit c2d8cc5410
  1. 2
      src/vrend_shader.c

@ -942,7 +942,7 @@ iter_declaration(struct tgsi_iterate_context *iter,
ctx->inputs[k].name = TGSI_SEMANTIC_FACE; ctx->inputs[k].name = TGSI_SEMANTIC_FACE;
ctx->inputs[k].sid = 0; ctx->inputs[k].sid = 0;
ctx->inputs[k].interpolate = 0; ctx->inputs[k].interpolate = TGSI_INTERPOLATE_CONSTANT;
ctx->inputs[k].location = TGSI_INTERPOLATE_LOC_CENTER; ctx->inputs[k].location = TGSI_INTERPOLATE_LOC_CENTER;
ctx->inputs[k].first = 0; ctx->inputs[k].first = 0;
ctx->inputs[k].override_no_wm = false; ctx->inputs[k].override_no_wm = false;

Loading…
Cancel
Save