[Mesa-dev] [PATCH 3/3] radeonsi: overhaul the vertex fetch fixup mechanism
Marek Olšák
maraeo at gmail.com
Wed May 8 05:35:36 UTC 2019
For the series:
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Fri, May 3, 2019 at 7:06 AM Haehnle, Nicolai <Nicolai.Haehnle at amd.com>
wrote:
> On 03.05.19 12:36, Nicolai Hähnle wrote:
> > On 25.04.19 13:18, Nicolai Hähnle wrote:
> >> @@ -4618,21 +4648,27 @@ static void si_bind_vertex_elements(struct
> >> pipe_context *ctx, void *state)
> >> struct si_vertex_elements *old = sctx->vertex_elements;
> >> struct si_vertex_elements *v = (struct si_vertex_elements*)state;
> >> sctx->vertex_elements = v;
> >> sctx->vertex_buffers_dirty = true;
> >> if (v &&
> >> (!old ||
> >> old->count != v->count ||
> >> old->uses_instance_divisors != v->uses_instance_divisors ||
> >> - v->uses_instance_divisors || /* we don't check which
> >> divisors changed */
> >> + /* we don't check which divisors changed */
> >> + v->uses_instance_divisors ||
> >> + /* fix_fetch_{always,opencode,unaligned} and
> >> hw_load_is_dword are
> >> + * functions of fix_fetch and the src_offset alignment.
> >> + * If they change and fix_fetch doesn't, it must be due to
> >> different
> >> + * src_offset alignment, which is reflected in
> >> fix_fetch_opencode. */
> >> + old->fix_fetch_opencode != v->fix_fetch_opencode ||
> >> memcmp(old->fix_fetch, v->fix_fetch,
> >> sizeof(v->fix_fetch[0]) * v->count)))
> >
> > The following condition got dropped in a late cleanup that I was doing:
> >
> >> (old->vb_alignment_check_mask ^ v->vb_alignment_check_mask) &
> >> sctx->vertex_buffer_unaligned ||
>
> ... and also this:
>
> > ((v->vb_alignment_check_mask & sctx->vertex_buffer_unaligned)
> &&
> > memcmp(old->vertex_buffer_index, v->vertex_buffer_index,
> > sizeof(v->vertex_buffer_index[0]) * v->count)) ||
>
> Cheers,
> Nicolai
>
>
> >
> > I've fixed that locally.
> >
> > Cheers,
> > Nicolai
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190508/cdad5c5e/attachment.html>
More information about the mesa-dev
mailing list