mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 12:50:12 +01:00
panfrost: Simplify attribute format expression
Chew through a layer of indirection for clarity. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16035>
This commit is contained in:
parent
603c06d00f
commit
2a027abfcf
1 changed files with 1 additions and 3 deletions
|
|
@ -3720,9 +3720,7 @@ panfrost_create_vertex_elements_state(
|
|||
|
||||
for (int i = 0; i < num_elements; ++i) {
|
||||
enum pipe_format fmt = elements[i].src_format;
|
||||
const struct util_format_description *desc = util_format_description(fmt);
|
||||
so->formats[i] = dev->formats[desc->format].hw;
|
||||
assert(so->formats[i]);
|
||||
so->formats[i] = dev->formats[fmt].hw;
|
||||
}
|
||||
|
||||
/* Let's also prepare vertex builtins */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue