소스 검색

radeonsi: Also set the depth component mask bit for stencil-only exports

The stencil values come out wrong without this for some reason.

50 more little piglits.

Cc: mesa-stable@lists.freedesktop.org
tags/mesa-10.1-devel
Michel Dänzer 12 년 전
부모
커밋
46fd81e586
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4
    1
      src/gallium/drivers/radeonsi/radeonsi_shader.c

+ 4
- 1
src/gallium/drivers/radeonsi/radeonsi_shader.c 파일 보기

@@ -826,7 +826,10 @@ handle_semantic:
args[7] =
args[8] =
args[6] = LLVMBuildLoad(base->gallivm->builder, out_ptr, "");
mask |= 0x2;
/* Only setting the stencil component bit (0x2) here
* breaks some stencil piglit tests
*/
mask |= 0x3;

if (depth_index < 0)
args[5] = args[6];

Loading…
취소
저장