etnaviv wrong stride size

Johannes Kirchmair <[email protected]>
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <VE1PR08MB4909B57885FF8C3F9A85A7EC92C60@VE1PR08MB4909.eurprd08.prod.outlook.com>
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

_______________________________________________
mesa-users mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.