Commit 74788951 by Shahbaz Youssefi Committed by Commit Bot

Vulkan: Fix assertion in xfb of indirect calls

An assertion was fired which was only valid when emulating transform feedback. The relevant block is conditioned to the respective feature. Bug: angleproject:3571 Change-Id: I287ef6d94c920ccda742e4032bfc389409a38e1f Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2599951Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
parent 9d45f527
...@@ -798,8 +798,11 @@ angle::Result ContextVk::setupDraw(const gl::Context *context, ...@@ -798,8 +798,11 @@ angle::Result ContextVk::setupDraw(const gl::Context *context,
mGraphicsDirtyBits.set(DIRTY_BIT_DESCRIPTOR_SETS); mGraphicsDirtyBits.set(DIRTY_BIT_DESCRIPTOR_SETS);
} }
// Update transform feedback offsets on every draw call. // Update transform feedback offsets on every draw call when emulating transform feedback. This
if (mState.isTransformFeedbackActiveUnpaused()) // relies on the fact that no geometry/tessellation, indirect or indexed calls are supported in
// ES3.1 (and emulation is not done for ES3.2).
if (getFeatures().emulateTransformFeedback.enabled &&
mState.isTransformFeedbackActiveUnpaused())
{ {
ASSERT(firstVertexOrInvalid != -1); ASSERT(firstVertexOrInvalid != -1);
mXfbBaseVertex = firstVertexOrInvalid; mXfbBaseVertex = firstVertexOrInvalid;
......
...@@ -63,8 +63,7 @@ ...@@ -63,8 +63,7 @@
3588 VULKAN : KHR-GLES31.core.sample_variables.mask.rgba8*i.* = FAIL 3588 VULKAN : KHR-GLES31.core.sample_variables.mask.rgba8*i.* = FAIL
// Geometry shader support // Geometry shader support
5406 VULKAN : KHR-GLES31.core.draw_indirect.basic-mode-*adjacency = SKIP 5483 VULKAN : KHR-GLES31.core.draw_indirect.basic-mode-*adjacency = SKIP
3571 VULKAN : KHR-GLES31.core.draw_indirect.negative-xfb = SKIP
//// ////
//// Desktop Vulkan expectations //// Desktop Vulkan expectations
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment