Am Dienstag, den 27.06.2017, 14:09 +0200 schrieb Wladimir J. van der Laan: > On Fri, Jun 23, 2017 at 05:50:18PM +0200, Lucas Stach wrote: > > The layer stride information is used in various parts of the driver, > > so it needs to be present regardless if the driver allocated the > > buffer itself or merely imported it from an external source. > > Reviewed-by: Wladimir J. van der Laan <laa...@gmail.com>
Thanks guys! Patches 1 and 2 of this series seem to be good to go. I'll push them out in a moment to have them out of the way for the next revision of this patchset. Regards, Lucas > > > > > Signed-off-by: Lucas Stach <l.st...@pengutronix.de> > > --- > > src/gallium/drivers/etnaviv/etnaviv_resource.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.c > > b/src/gallium/drivers/etnaviv/etnaviv_resource.c > > index 1c098445b17a..dfd087071193 100644 > > --- a/src/gallium/drivers/etnaviv/etnaviv_resource.c > > +++ b/src/gallium/drivers/etnaviv/etnaviv_resource.c > > @@ -352,6 +352,8 @@ etna_resource_from_handle(struct pipe_screen *pscreen, > > > > level->padded_width = align(level->width, paddingX); > > level->padded_height = align(level->height, paddingY); > > + level->layer_stride = level->stride * > > util_format_get_nblocksy(prsc->format, > > + > > level->padded_height); > > > > /* The DDX must give us a BO which conforms to our padding size. > > * The stride of the BO must be greater or equal to our padded > > -- > > 2.11.0 > > > > _______________________________________________ > > etnaviv mailing list > > etna...@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/etnaviv > _______________________________________________ > etnaviv mailing list > etna...@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/etnaviv _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev