mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 02:40:46 +02:00
isl/state: Don't set SurfacePitch for gen9 1-D textures
This field is ignored by the hardware in this case and, on very large 1-D textures, it can end up being larger than the maximum allowed value. Reviewed-by: Chad Versace <chad.versace@intel.com> Cc: "12.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
f47e23a8b6
commit
ce24097abe
1 changed files with 3 additions and 0 deletions
|
|
@ -313,6 +313,9 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state,
|
|||
* two rows interleaved."
|
||||
*/
|
||||
s.SurfacePitch = info->surf->row_pitch * 2 - 1;
|
||||
} else if (info->surf->dim_layout == ISL_DIM_LAYOUT_GEN9_1D) {
|
||||
/* For gen9 1-D textures, surface pitch is ignored */
|
||||
s.SurfacePitch = 0;
|
||||
} else {
|
||||
s.SurfacePitch = info->surf->row_pitch - 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue