소스 검색

glsl: fix max binding validation for uniform blocks

Regression as of 64710db664

We can't use the type returned by get_interface_type() as
the interface type has arrays removed.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
tags/11.2-branchpoint
Timothy Arceri 9 년 전
부모
커밋
6463d36394
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      src/glsl/ast_to_hir.cpp

+ 2
- 2
src/glsl/ast_to_hir.cpp 파일 보기

@@ -6962,8 +6962,8 @@ ast_interface_block::hir(exec_list *instructions,
delete var;
} else {
if (this->layout.flags.q.explicit_binding) {
apply_explicit_binding(state, &loc, var,
var->get_interface_type(), &this->layout);
apply_explicit_binding(state, &loc, var, var->type,
&this->layout);
}

var->data.stream = qual_stream;

Loading…
취소
저장