[Mesa-dev] [PATCH 07/18] nir/spirv: Use the correct stride for non-32-bit vectors

Jason Ekstrand jason at jlekstrand.net
Fri Jun 30 01:55:33 UTC 2017


On Thu, Jun 29, 2017 at 6:51 PM, Connor Abbott <cwabbott0 at gmail.com> wrote:

> Fixup the comment above this?
>

Yup.  Fixed locally.


> On Thu, Jun 29, 2017 at 10:33 AM, Jason Ekstrand <jason at jlekstrand.net>
> wrote:
> > ---
> >  src/compiler/spirv/spirv_to_nir.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/src/compiler/spirv/spirv_to_nir.c
> b/src/compiler/spirv/spirv_to_nir.c
> > index 18e3734..7a98843 100644
> > --- a/src/compiler/spirv/spirv_to_nir.c
> > +++ b/src/compiler/spirv/spirv_to_nir.c
> > @@ -744,7 +744,7 @@ vtn_handle_type(struct vtn_builder *b, SpvOp opcode,
> >         * is always 4 bytes.  This will have to change if we want to
> start
> >         * supporting doubles or half-floats.
> >         */
> > -      val->type->stride = 4;
> > +      val->type->stride = glsl_get_bit_size(base->type) / 8;
> >        val->type->array_element = base;
> >        break;
> >     }
> > --
> > 2.5.0.400.gff86faf
> >
> > _______________________________________________
> > 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/20170629/9223aaf5/attachment.html>


More information about the mesa-dev mailing list