vrend_shader: require glsl 150 for early depth stencil

Input/output layout qualifiers used by early depth stencil are
glsl 150 feature.

Fixes on SKL:
  dEQP-GLES31.functional.image_load_store.early_fragment_tests.early_fragment_tests_depth
  dEQP-GLES31.functional.image_load_store.early_fragment_tests.early_fragment_tests_stencil
  dEQP-GLES31.functional.image_load_store.early_fragment_tests.early_fragment_tests_depth_fbo
  dEQP-GLES31.functional.image_load_store.early_fragment_tests.early_fragment_tests_stencil_fbo

Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Gurchetan Singh 6 years ago committed by Dave Airlie
parent 244b110659
commit 938352fab2
  1. 4
      src/vrend_shader.c

@ -1340,8 +1340,10 @@ iter_property(struct tgsi_iterate_context *iter,
if (prop->Property.PropertyName == TGSI_PROPERTY_FS_EARLY_DEPTH_STENCIL) { if (prop->Property.PropertyName == TGSI_PROPERTY_FS_EARLY_DEPTH_STENCIL) {
ctx->early_depth_stencil = prop->u[0].Data > 0; ctx->early_depth_stencil = prop->u[0].Data > 0;
if (ctx->early_depth_stencil) if (ctx->early_depth_stencil) {
require_glsl_ver(ctx, 150);
ctx->shader_req_bits |= SHADER_REQ_IMAGE_LOAD_STORE; ctx->shader_req_bits |= SHADER_REQ_IMAGE_LOAD_STORE;
}
} }
if (prop->Property.PropertyName == TGSI_PROPERTY_CS_FIXED_BLOCK_WIDTH) if (prop->Property.PropertyName == TGSI_PROPERTY_CS_FIXED_BLOCK_WIDTH)

Loading…
Cancel
Save