mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
isl/state: Use a valid alignment for 1-D textures
The alignment we use doesn't matter (see the comment) but it should at least be an alignment we can represent with the enums. Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
0aa0b39769
commit
1666d029aa
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ get_image_alignment(const struct isl_surf *surf)
|
|||
* true alignment is likely outside the enum range of HALIGN* and
|
||||
* VALIGN*.
|
||||
*/
|
||||
return isl_extent3d(0, 0, 0);
|
||||
return isl_extent3d(4, 4, 1);
|
||||
} else {
|
||||
/* In Skylake, RENDER_SUFFACE_STATE.SurfaceVerticalAlignment is in units
|
||||
* of surface elements (not pixels nor samples). For compressed formats,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue