HomePhabricator
Diffusion Mesa 42aee8f4f68d

llvmpipe: fix check for a no-op shader

Authored by Brian Paul <brianp@vmware.com> on May 18 2018, 3:57 AM.

Description

llvmpipe: fix check for a no-op shader

The tgsi_info.num_tokens fix broke llvmpipe's detection of no-op shaders.
Fix the code to check for num_instructions <= 1 instead.

Fixes: 8fde9429c36b75 ("tgsi: fix incorrect tgsi_shader_info::num_tokens
computation")
Tested-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>

Details

Committed
Brian Paul <brianp@vmware.com>May 18 2018, 5:09 PM
Pushed
pmoreauMay 22 2018, 7:03 PM
Parents
rMESA03c4816093b5: radv: pass radv_nir_compiler_options directly to create_llvm_function()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Paul <brianp@vmware.com> committed rMESA42aee8f4f68d: llvmpipe: fix check for a no-op shader (authored by Brian Paul <brianp@vmware.com>).May 18 2018, 5:09 PM