Skip to content

Commit

Permalink
Only opt-out of LII for encoded payload.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Jan 14, 2024
1 parent 368019d commit d307e42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/meshlet_viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,11 @@ struct MeshletViewerApplication : Granite::Application, Granite::EventHandler //

// RADV doesn't seem to like roundtripping through LDS to satisfy local invocation indexed.
// amdgpu-pro is bugged without it >_<
if (device.get_device_features().driver_id == VK_DRIVER_ID_MESA_RADV)
if (device.get_device_features().driver_id == VK_DRIVER_ID_MESA_RADV &&
manager.get_mesh_encoding() == ResourceManager::MeshEncoding::MeshletEncoded)
{
local_invocation_indexed = false;
}

local_invocation_indexed = Util::get_environment_bool("LOCAL_INVOCATION", local_invocation_indexed);

Expand Down

0 comments on commit d307e42

Please sign in to comment.