mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 05:48:07 +02:00
iris: Fix imageBuffer and PBO download.
Recently we added checks to try and deny multisampled shader images.
Unfortunately, this messed up imageBuffers, which have sample_count = 0,
which are also used in PBO download, causing us hit CPU map fallbacks.
Fixes: b15f5cfd20 iris: Do not advertise multisampled image load/store.
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
This commit is contained in:
parent
e2fecf57e3
commit
ebbb05b3c9
1 changed files with 2 additions and 2 deletions
|
|
@ -455,9 +455,9 @@ iris_is_format_supported(struct pipe_screen *pscreen,
|
|||
|
||||
if (usage & PIPE_BIND_SHADER_IMAGE) {
|
||||
/* Dataport doesn't support compression, and we can't resolve an MCS
|
||||
* compressed surface.
|
||||
* compressed surface. (Buffer images may have sample count of 0.)
|
||||
*/
|
||||
supported &= sample_count == 1;
|
||||
supported &= sample_count <= 1;
|
||||
|
||||
// XXX: allow untyped reads
|
||||
supported &= isl_format_supports_typed_reads(devinfo, format) &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue