Skip to content

llvmpipe: Fix type mismatch when storing residency info

llvmpipe: Fix type mismatch when storing residency info

The storage allocated was always the same for both the ordinary texture result data as well as the residency info. However, the former can be float vector, whereas the latter is always int vector. At least some llvm versions/builds will assert on this mismatch when storing the data. While here, also cut unnecessary zero initialization (lp_build_alloca() already explicitly does this).

Fixes: 6168317b (lavapipe: Implement shaderResourceResidency)

Merge request reports

Loading