[Mesa-users] etnaviv wrong stride size
Johannes Kirchmair
johannes.kirchmair at sigmatek.at
Tue Dec 15 08:40:47 UTC 2020
Hello there,
as I am not quite sure, hope this is the right mailinglist, otherwise please point me in the right direction.
I stumbled upon a problem using the etnaviv driver on my imx8mm board with xorg.
I try to get an 600x1024 display up and running. For testing I tried starting glxgears fullscreen but the display stayed black.
On the shell glxgears printed the following line:
etna_resource_from_handle:564: BO stride 2400 is too small for RS engine width padding (2432, format PIPE_FORMAT_B8G8R8X8_UNORM)
So I started adding some messages into the etnaviv_resources.c in front of the if-clause resulting in the message above:
555 level->size = level->layer_stride;
556
557 +BUG("padded_width %d", level->padded_width);
558 +BUG("padded_height %d", level->padded_height);
559 +BUG("leyer_stride %d", level->layer_stride);
560 +BUG("paddingX %d", paddingX);
561 +BUG("paddingY %d", paddingY);
562
563
564 /* The DDX must give us a BO which conforms to our padding size.
565 * The stride of the BO must be greater or equal to our padded
566 * stride. The size of the BO must accomodate the padded height. */
567 if (level->stride < util_format_get_stride(tmpl->format, level->padded_width)) {
568 BUG("BO stride %u is too small for RS engine width padding (%zu, format %s)",
569 level->stride, util_format_get_stride(tmpl->format, level->padded_width),
570 util_format_name(tmpl->format));
571 goto fail;
572 }
This resulting in glxgears printing the following:
$ glxgears
etna_resource_from_handle:557: padded_width 608
etna_resource_from_handle:558: padded_height 1024
etna_resource_from_handle:559: leyer_stride 2457600
etna_resource_from_handle:560: paddingX 16
etna_resource_from_handle:561: paddingY 4
etna_resource_from_handle:568: BO stride 2400 is too small for RS engine width padding (2432, format PIPE_FORMAT_B8G8R8X8_UNORM)
Simple-hearted as I am, I would think, that maybe the BO stride missed the 8 byte padding on width. But as I don't really know much about the interns of graphics stack, I hope you can maybe help me.
FYI:
mesa is version 19.1.6
xorg-server is version 1.20.5
libdrm is version 2.4.99
matchbox-wm is version 1.2.2
If you need more information, I will happily provide it.
Best regards
Johannes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-users/attachments/20201215/607e5ef9/attachment-0001.htm>
More information about the mesa-users
mailing list