summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_cmd_buffer.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2018-06-19 10:03:20 +0200
committerBas Nieuwenhuizen <[email protected]>2018-06-19 22:35:13 +0200
commited06b1cdcadf2f09caefe33b67a67875e6181b4c (patch)
tree8a6a501db030f3fad6d318a5fcb07e4f49f1e243 /src/amd/vulkan/radv_cmd_buffer.c
parent1ba87f4438069964af6548f4fa05386be999f4de (diff)
radv: Don't check for pipeline being set in draw.
Draws without pipeline are definitely not allowed. Fixes Coverity issue 1434216. Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_cmd_buffer.c')
-rw-r--r--src/amd/vulkan/radv_cmd_buffer.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index 6134749d848..7454b39a934 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -3366,7 +3366,6 @@ radv_draw(struct radv_cmd_buffer *cmd_buffer,
cmd_buffer->device->physical_device->rad_info.chip_class >= CIK;
bool pipeline_is_dirty =
(cmd_buffer->state.dirty & RADV_CMD_DIRTY_PIPELINE) &&
- cmd_buffer->state.pipeline &&
cmd_buffer->state.pipeline != cmd_buffer->state.emitted_pipeline;
MAYBE_UNUSED unsigned cdw_max =