From dccd75b60c201f985d980fc8db5b2ac0c788c5b7 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Tue, 23 Jul 2019 14:12:43 +0300 Subject: [PATCH] anv: fix use of comma operator This doesn't fix any bug at the moment because the next statement is 'true' which happens to be APIMODE_D3D, but if that changes it could. The fixes tags is as far I could go but the error predates it (2016 is probably far enough). Signed-off-by: Lionel Landwerlin Fixes: 8db6f2e6ebb9 ("anv/pipeline: Roll genX_pipeline_util.h into genX_pipeline.c") Reviewed-by: Eric Engestrom Reviewed-by: Jason Ekstrand (cherry picked from commit 772a5f981485d81919f1cb8ab52ddff0412c6ee5) [Juan A. Suarez: resolve trivial conflicts] Signed-off-by: Juan A. Suarez Romero Conflicts: src/intel/vulkan/genX_pipeline.c --- src/intel/vulkan/genX_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 0b58dce05b0..8db2e1e6aa0 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -1075,7 +1075,7 @@ emit_3dstate_clip(struct anv_pipeline *pipeline, clip.ClipEnable = true; clip.StatisticsEnable = true; clip.EarlyCullEnable = true; - clip.APIMode = APIMODE_D3D, + clip.APIMode = APIMODE_D3D; clip.ViewportXYClipTestEnable = true; #if GEN_GEN >= 8