From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 89164] AMD Kaveri: gbm_bo_get_stride returns wrong values for
cursor buffers
Date: Mon, 16 Feb 2015 08:46:31 +0000
Message-ID:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0882824283=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id C19366E229
for ; Mon, 16 Feb 2015 00:46:31 -0800 (PST)
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dri-devel-bounces@lists.freedesktop.org
Sender: "dri-devel"
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============0882824283==
Content-Type: multipart/alternative; boundary="1424076391.1fBae0.10151"; charset="UTF-8"
--1424076391.1fBae0.10151
Date: Mon, 16 Feb 2015 08:46:31 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=89164
Bug ID: 89164
Summary: AMD Kaveri: gbm_bo_get_stride returns wrong values for
cursor buffers
Product: Mesa
Version: 10.4
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: dri-devel@lists.freedesktop.org
Reporter: andreas.pokorny@gmail.com
QA Contact: dri-devel@lists.freedesktop.org
When creating a cursor with GBM_BO_USE_CURSOR{_64x64} and a dimension of 64 by
64 pixel the operation succeeds and the returned stride size is always 256.
When drawing the cursor buffer and displaying on screen graphical artifacts
appear. Instead of 128 bytes a stride size of 512 seems to be correct on Kaveri
systems.
For this particular scenario there is a workaround: query 'an arbitrary but
valid cursor buffer size' with DRM_CAP_CURSOR_WIDTH DRM_CAP_CURSOR_HEIGHT.
Still gbm_bo_get_stride should not return a wrong stride size.
--
You are receiving this mail because:
You are the assignee for the bug.
--1424076391.1fBae0.10151
Date: Mon, 16 Feb 2015 08:46:31 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
| Bug ID |
89164
|
| Summary |
AMD Kaveri: gbm_bo_get_stride returns wrong values for cursor buffers
|
| Product |
Mesa
|
| Version |
10.4
|
| Hardware |
x86-64 (AMD64)
|
| OS |
Linux (All)
|
| Status |
NEW
|
| Severity |
normal
|
| Priority |
medium
|
| Component |
Drivers/Gallium/radeonsi
|
| Assignee |
dri-devel@lists.freedesktop.org
|
| Reporter |
andreas.pokorny@gmail.com
|
| QA Contact |
dri-devel@lists.freedesktop.org
|
When creating a cursor with GBM_BO_USE_CURSOR{_64x64} and a dimension of 64 by
64 pixel the operation succeeds and the returned stride size is always 256.
When drawing the cursor buffer and displaying on screen graphical artifacts
appear. Instead of 128 bytes a stride size of 512 seems to be correct on Kaveri
systems.
For this particular scenario there is a workaround: query 'an arbitrary but
valid cursor buffer size' with DRM_CAP_CURSOR_WIDTH DRM_CAP_CURSOR_HEIGHT.
Still gbm_bo_get_stride should not return a wrong stride size.
You are receiving this mail because:
- You are the assignee for the bug.
--1424076391.1fBae0.10151--
--===============0882824283==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0
cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK
--===============0882824283==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 89164] AMD Kaveri: gbm_bo_get_stride returns wrong values for
cursor buffers
Date: Mon, 16 Feb 2015 09:24:14 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0064155198=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 4F3BE89915
for ; Mon, 16 Feb 2015 01:24:14 -0800 (PST)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dri-devel-bounces@lists.freedesktop.org
Sender: "dri-devel"
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============0064155198==
Content-Type: multipart/alternative; boundary="1424078654.EDF0b1.15880"; charset="UTF-8"
--1424078654.EDF0b1.15880
Date: Mon, 16 Feb 2015 09:24:14 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
https://bugs.freedesktop.org/show_bug.cgi?id=3D89164
Michel D=C3=A4nzer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |NOTABUG
--- Comment #1 from Michel D=C3=A4nzer ---
You need to pass the dimensions queried from DRM_CAP_CURSOR_WIDTH and
DRM_CAP_CURSOR_HEIGHT instead of hardcoding 64. As of CIK, Radeon hardware =
only
supports 256x256 hardware cursors.
--=20
You are receiving this mail because:
You are the assignee for the bug.
--1424078654.EDF0b1.15880
Date: Mon, 16 Feb 2015 09:24:14 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
=
Michel D=C3=A4nzer
changed
bug 89164<=
/a>
| What |
Removed |
Added |
| Status |
NEW
|
RESOLVED
|
| Resolution |
---
|
NOTABUG
|
You are receiving this mail because:
=20=20=20=20=20=20
- You are the assignee for the bug.
--1424078654.EDF0b1.15880--
--===============0064155198==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0
cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK
--===============0064155198==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 89164] AMD Kaveri: gbm_bo_get_stride returns wrong values for
cursor buffers
Date: Thu, 19 Feb 2015 09:02:21 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0097530865=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 751076E15D
for ; Thu, 19 Feb 2015 01:02:21 -0800 (PST)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dri-devel-bounces@lists.freedesktop.org
Sender: "dri-devel"
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============0097530865==
Content-Type: multipart/alternative; boundary="1424336541.C30f4Ff0.19218"; charset="UTF-8"
--1424336541.C30f4Ff0.19218
Date: Thu, 19 Feb 2015 09:02:21 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
https://bugs.freedesktop.org/show_bug.cgi?id=3D89164
--- Comment #2 from Andreas Pokorny ---
(In reply to Michel D=C3=A4nzer from comment #1)
> You need to pass the dimensions queried from DRM_CAP_CURSOR_WIDTH and
> DRM_CAP_CURSOR_HEIGHT instead of hardcoding 64. As of CIK, Radeon hardware
> only supports 256x256 hardware cursors.
Yes, but since buffer creation with a smaller size does not fail,
gbm_bo_get_stride should return the right size.
--=20
You are receiving this mail because:
You are the assignee for the bug.
--1424336541.C30f4Ff0.19218
Date: Thu, 19 Feb 2015 09:02:21 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Comment=
# 2
on bug 89164<=
/a>
from Andreas Pokorny
(In reply to Michel D=C3=A4nzer from comment #1)
> You need to pass the dimensions queried from DRM=
_CAP_CURSOR_WIDTH and
> DRM_CAP_CURSOR_HEIGHT instead of hardcoding 64. As of CIK, Radeon hard=
ware
> only supports 256x256 hardware cursors.
Yes, but since buffer creation with a smaller size does not fail,
gbm_bo_get_stride should return the right size.
You are receiving this mail because:
=20=20=20=20=20=20
- You are the assignee for the bug.
--1424336541.C30f4Ff0.19218--
--===============0097530865==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0
cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK
--===============0097530865==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 89164] AMD Kaveri: gbm_bo_get_stride returns wrong values for
cursor buffers
Date: Thu, 19 Feb 2015 09:33:07 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0342191209=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id BC6C86E51D
for ; Thu, 19 Feb 2015 01:33:07 -0800 (PST)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dri-devel-bounces@lists.freedesktop.org
Sender: "dri-devel"
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============0342191209==
Content-Type: multipart/alternative; boundary="1424338387.CFd02a11.25924"; charset="UTF-8"
--1424338387.CFd02a11.25924
Date: Thu, 19 Feb 2015 09:33:07 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
https://bugs.freedesktop.org/show_bug.cgi?id=3D89164
--- Comment #3 from Michel D=C3=A4nzer ---
(In reply to Andreas Pokorny from comment #2)
> Yes, but since buffer creation with a smaller size does not fail,
> gbm_bo_get_stride should return the right size.
It returns the stride of the allocated buffer. The problem is that the buff=
er
size doesn't match the hardware cursor size in the first place. Returning a
different stride can't change that.
--=20
You are receiving this mail because:
You are the assignee for the bug.
--1424338387.CFd02a11.25924
Date: Thu, 19 Feb 2015 09:33:07 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Comment=
# 3
on bug 89164<=
/a>
from Michel D=C3=A4nzer
(In reply to Andreas Pokorny from comment #2)
> Yes, but since buffer creation with a smaller si=
ze does not fail,
> gbm_bo_get_stride should return the right size.
It returns the stride of the allocated buffer. The problem is that the buff=
er
size doesn't match the hardware cursor size in the first place. Returning a
different stride can't change that.
You are receiving this mail because:
=20=20=20=20=20=20
- You are the assignee for the bug.
--1424338387.CFd02a11.25924--
--===============0342191209==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0
cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK
--===============0342191209==--