freedreno: stop frob'ing pipe_resource::nr_samples
Previously we tried to normalize nr_samples to MAX2(1, nr_samples) to avoid having to deal with 0 vs 1 everywhere. But this causes problems in mesa/st, for example st_finalize_texture() will think there is a nr_samples mismatch and recreate the texture. Somehow this manifests as corrupt x11 font rendering on generations that do not support MSAA (but apparently works fine on a5xx and a6xx which do support MSAA.) Fixes: cf0c7258 freedreno/a5xx: MSAA Signed-off-by:Rob Clark <robdclark@gmail.com>
Showing
- src/gallium/drivers/freedreno/freedreno_batch_cache.c 1 addition, 1 deletionsrc/gallium/drivers/freedreno/freedreno_batch_cache.c
- src/gallium/drivers/freedreno/freedreno_resource.c 3 additions, 4 deletionssrc/gallium/drivers/freedreno/freedreno_resource.c
- src/gallium/drivers/freedreno/freedreno_resource.h 9 additions, 0 deletionssrc/gallium/drivers/freedreno/freedreno_resource.h
- src/gallium/drivers/freedreno/freedreno_texture.c 2 additions, 1 deletionsrc/gallium/drivers/freedreno/freedreno_texture.c
Loading
Please register or sign in to comment