diff options
author | Jason Ekstrand <[email protected]> | 2016-03-04 12:22:32 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-03-04 12:22:32 -0800 |
commit | f374765ce685d30b4eabe8085dc3daa95a75f8f8 (patch) | |
tree | 70271fea602d5dbab4b32eb2da1f32c7aca76274 /src/intel/vulkan/gen7_cmd_buffer.c | |
parent | d61dcec64dc66fea7f15f296212c68f18fe5aaa0 (diff) |
anv/cmd_buffer: Mask stencil reference values
Diffstat (limited to 'src/intel/vulkan/gen7_cmd_buffer.c')
-rw-r--r-- | src/intel/vulkan/gen7_cmd_buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/gen7_cmd_buffer.c b/src/intel/vulkan/gen7_cmd_buffer.c index 71010583129..985907872fa 100644 --- a/src/intel/vulkan/gen7_cmd_buffer.c +++ b/src/intel/vulkan/gen7_cmd_buffer.c @@ -561,8 +561,8 @@ genX(cmd_buffer_flush_state)(struct anv_cmd_buffer *cmd_buffer) .BlendConstantColorGreen = cmd_buffer->state.dynamic.blend_constants[1], .BlendConstantColorBlue = cmd_buffer->state.dynamic.blend_constants[2], .BlendConstantColorAlpha = cmd_buffer->state.dynamic.blend_constants[3], - .StencilReferenceValue = d->stencil_reference.front, - .BackFaceStencilReferenceValue = d->stencil_reference.back, + .StencilReferenceValue = d->stencil_reference.front & 0xff, + .BackFaceStencilReferenceValue = d->stencil_reference.back & 0xff, }; GENX(COLOR_CALC_STATE_pack)(NULL, cc_state.map, &cc); if (!cmd_buffer->device->info.has_llc) |