Przeglądaj źródła

intel: Fix intel_texsubimage_tiled_memcpy to skip GL_EXT_unpack_subimage case

413c49141 added an optimisation to improve the performance of teximage
under a limited set of circumstances. If GL_EXT_unpack_subimage has been
used then we we must also skip this optimisation since the optimised
codepath does not take the packing values into consideration.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
tags/gles3-fmt-v1
Rob Bradford 13 lat temu
rodzic
commit
185d6df3c1
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4
    1
      src/mesa/drivers/dri/intel/intel_tex_subimage.c

+ 4
- 1
src/mesa/drivers/dri/intel/intel_tex_subimage.c Wyświetl plik

@@ -205,7 +205,10 @@ intel_texsubimage_tiled_memcpy(struct gl_context * ctx,
texImage->TexObject->Target != GL_TEXTURE_2D ||
texImage->Level != 0 ||
pixels == NULL ||
packing->Alignment > 4)
packing->Alignment > 4 ||
packing->SkipPixels > 0 ||
packing->SkipRows > 0 ||
packing->RowLength != width)
return false;

if (for_glTexImage)

Ładowanie…
Anuluj
Zapisz