diff options
author | Jason Ekstrand <[email protected]> | 2015-11-20 11:52:28 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-11-20 11:52:30 -0800 |
commit | e69db9159b6f4d405d152012daa9da72f4f321e8 (patch) | |
tree | d79f01e94cf586e584eaf01e991e5e0010df05ba /src/vulkan/gen8_pipeline.c | |
parent | fa8db0dfcc542bbe31de5e65e25fe2946cb9552f (diff) |
gen8/pipeline: Minor blending fixes
This makes various fields match upstream mesa
Diffstat (limited to 'src/vulkan/gen8_pipeline.c')
-rw-r--r-- | src/vulkan/gen8_pipeline.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vulkan/gen8_pipeline.c b/src/vulkan/gen8_pipeline.c index 9d4ee9927cf..2baa5c5f31d 100644 --- a/src/vulkan/gen8_pipeline.c +++ b/src/vulkan/gen8_pipeline.c @@ -198,6 +198,7 @@ emit_cb_state(struct anv_pipeline *pipeline, struct GEN8_BLEND_STATE blend_state = { .AlphaToCoverageEnable = info->alphaToCoverageEnable, + .AlphaToOneEnable = info->alphaToOneEnable, }; for (uint32_t i = 0; i < info->attachmentCount; i++) { @@ -208,8 +209,9 @@ emit_cb_state(struct anv_pipeline *pipeline, .LogicOpFunction = vk_to_gen_logic_op[info->logicOp], .ColorBufferBlendEnable = a->blendEnable, .PreBlendSourceOnlyClampEnable = false, - .PreBlendColorClampEnable = false, - .PostBlendColorClampEnable = false, + .ColorClampRange = COLORCLAMP_RTFORMAT, + .PreBlendColorClampEnable = true, + .PostBlendColorClampEnable = true, .SourceBlendFactor = vk_to_gen_blend[a->srcBlendColor], .DestinationBlendFactor = vk_to_gen_blend[a->destBlendColor], .ColorBlendFunction = vk_to_gen_blend_op[a->blendOpColor], |