mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
panfrost: Use PIPE_CAP_VERTEX_ATTRIB_ELEMENT_ALIGNED_ONLY
..instead of 4BYTE_ALIGNED_ONLY. This is more correct and avoids
needless repacking. Noticed in Firefox, which was hitting the vbuf
translate path.
Fixes: e03622e50f ("panfrost: Set STRIDE_4BYTE_ALIGNED_ONLY")
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19761>
This commit is contained in:
parent
42212a9bfd
commit
c567e5528f
1 changed files with 10 additions and 2 deletions
|
|
@ -210,8 +210,16 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
|
|||
case PIPE_CAP_QUERY_TIMESTAMP:
|
||||
return is_gl3;
|
||||
|
||||
/* TODO: Where does this req come from in practice? */
|
||||
case PIPE_CAP_VERTEX_BUFFER_STRIDE_4BYTE_ALIGNED_ONLY:
|
||||
/* The hardware requires element alignment for data conversion to work
|
||||
* as expected. If data conversion is not required, this restriction is
|
||||
* lifted on Midgard at a performance penalty. We conservatively
|
||||
* require element alignment for vertex buffers, using u_vbuf to
|
||||
* translate to match the hardware requirement.
|
||||
*
|
||||
* This is less heavy-handed than the 4BYTE_ALIGNED_ONLY caps, which
|
||||
* would needlessly require alignment even for 8-bit formats.
|
||||
*/
|
||||
case PIPE_CAP_VERTEX_ATTRIB_ELEMENT_ALIGNED_ONLY:
|
||||
return 1;
|
||||
|
||||
case PIPE_CAP_MAX_TEXTURE_2D_SIZE:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue