mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
asahi: Pass instance_divisor to the compiler
Passes dEQP-GLES3.functional.instanced.* Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12053>
This commit is contained in:
parent
96c98e0d25
commit
b329fe8264
1 changed files with 1 additions and 1 deletions
|
|
@ -798,7 +798,6 @@ agx_create_vertex_elements(struct pipe_context *ctx,
|
|||
struct agx_attribute *attribs = calloc(sizeof(*attribs), AGX_MAX_ATTRIBS);
|
||||
for (unsigned i = 0; i < count; ++i) {
|
||||
const struct pipe_vertex_element ve = state[i];
|
||||
assert(ve.instance_divisor == 0 && "no instancing");
|
||||
|
||||
const struct util_format_description *desc =
|
||||
util_format_description(ve.src_format);
|
||||
|
|
@ -811,6 +810,7 @@ agx_create_vertex_elements(struct pipe_context *ctx,
|
|||
.src_offset = ve.src_offset / 4,
|
||||
.nr_comps_minus_1 = desc->nr_channels - 1,
|
||||
.format = agx_vertex_format[ve.src_format],
|
||||
.divisor = ve.instance_divisor
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue