* [Bug 26686] Some textures are distorted with libdrm 2.4.18 in GTAVC>A3
[not found] <bug-26686-502@http.bugs.freedesktop.org/>
@ 2010-02-22 3:56 ` bugzilla-daemon
2010-02-22 10:09 ` bugzilla-daemon
` (5 subsequent siblings)
6 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2010-02-22 3:56 UTC (permalink / raw)
To: dri-devel
http://bugs.freedesktop.org/show_bug.cgi?id=26686
Ian Romanick <idr@freedesktop.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|dri- |chris@chris-wilson.co.uk
|devel@lists.sourceforge.net |
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug 26686] Some textures are distorted with libdrm 2.4.18 in GTAVC>A3
[not found] <bug-26686-502@http.bugs.freedesktop.org/>
2010-02-22 3:56 ` [Bug 26686] Some textures are distorted with libdrm 2.4.18 in GTAVC>A3 bugzilla-daemon
@ 2010-02-22 10:09 ` bugzilla-daemon
2010-02-22 15:17 ` bugzilla-daemon
` (4 subsequent siblings)
6 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2010-02-22 10:09 UTC (permalink / raw)
To: dri-devel
http://bugs.freedesktop.org/show_bug.cgi?id=26686
Chris Wilson <chris@chris-wilson.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|chris@chris-wilson.co.uk |dri-
| |devel@lists.sourceforge.net
--- Comment #4 from Chris Wilson <chris@chris-wilson.co.uk> 2010-02-22 02:09:34 PST ---
Extremely unlikely to be a direct result of that commit.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug 26686] Some textures are distorted with libdrm 2.4.18 in GTAVC>A3
[not found] <bug-26686-502@http.bugs.freedesktop.org/>
2010-02-22 3:56 ` [Bug 26686] Some textures are distorted with libdrm 2.4.18 in GTAVC>A3 bugzilla-daemon
2010-02-22 10:09 ` bugzilla-daemon
@ 2010-02-22 15:17 ` bugzilla-daemon
2010-02-22 16:10 ` bugzilla-daemon
` (3 subsequent siblings)
6 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2010-02-22 15:17 UTC (permalink / raw)
To: dri-devel
http://bugs.freedesktop.org/show_bug.cgi?id=26686
--- Comment #5 from Ruslan <b7.10110111@gmail.com> 2010-02-22 07:17:22 PST ---
I tried to comment out this line:
bo_gem->tiling_mode = set_tiling.tiling_mode;
and now things seem to work. I.e., this statement:
>it overwrites the input arguments following an error in
>order to report the current tiling state of the buffer.
should be false (or, at least, not quite true). This is proved by the fact that
if i undo this part of commit:
- if (ret != 0) {
- *tiling_mode = bo_gem->tiling_mode;
- return -errno;
- }
, i.e. leave 'if' statement in place (and uncomment saving of current
tiling_mode), then things also work, because tiling_mode is not saved on error
now. So, i can conclude that sometimes the kernel doesn't report current tiling
state correctly on error.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug 26686] Some textures are distorted with libdrm 2.4.18 in GTAVC>A3
[not found] <bug-26686-502@http.bugs.freedesktop.org/>
` (2 preceding siblings ...)
2010-02-22 15:17 ` bugzilla-daemon
@ 2010-02-22 16:10 ` bugzilla-daemon
2010-05-24 17:29 ` bugzilla-daemon
` (2 subsequent siblings)
6 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2010-02-22 16:10 UTC (permalink / raw)
To: dri-devel
http://bugs.freedesktop.org/show_bug.cgi?id=26686
--- Comment #6 from Ruslan <b7.10110111@gmail.com> 2010-02-22 08:10:42 PST ---
I added perror() before 'return -errno;' to see what error doesn't report
tiling mode, and got "Invalid argument", i.e. EINVAL. Then i found this in
i915_gem_set_tiling() in the kernel:
if (!i915_tiling_ok(dev, args->stride, obj->size, args->tiling_mode)) {
mutex_lock(&dev->struct_mutex);
drm_gem_object_unreference(obj);
mutex_unlock(&dev->struct_mutex);
return -EINVAL;
}
As you can see, it doesn't change tiling_mode.
So, there should be a check for error after ioctl(), and tiling_mode shouldn't
be considered current.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug 26686] Some textures are distorted with libdrm 2.4.18 in GTAVC>A3
[not found] <bug-26686-502@http.bugs.freedesktop.org/>
` (3 preceding siblings ...)
2010-02-22 16:10 ` bugzilla-daemon
@ 2010-05-24 17:29 ` bugzilla-daemon
2010-05-24 17:42 ` bugzilla-daemon
2010-05-24 17:44 ` bugzilla-daemon
6 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2010-05-24 17:29 UTC (permalink / raw)
To: dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=26686
--- Comment #7 from Ruslan <b7.10110111@gmail.com> 2010-05-24 10:29:52 PDT ---
Still present with libdrm 2.4.20.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug 26686] Some textures are distorted with libdrm 2.4.18 in GTAVC>A3
[not found] <bug-26686-502@http.bugs.freedesktop.org/>
` (4 preceding siblings ...)
2010-05-24 17:29 ` bugzilla-daemon
@ 2010-05-24 17:42 ` bugzilla-daemon
2010-05-24 17:44 ` bugzilla-daemon
6 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2010-05-24 17:42 UTC (permalink / raw)
To: dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=26686
Chris Wilson <chris@chris-wilson.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #8 from Chris Wilson <chris@chris-wilson.co.uk> 2010-05-24 10:42:56 PDT ---
commit fcf3e616eeeb289f96af1436d809f0a1a42bebb7
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date: Mon May 24 18:35:41 2010 +0100
intel: Don't change tiling mode unless the kernel reports success.
Fixes:
Bug 26686 - Some textures are distorted with libdrm 2.4.18 in GTAVC>A3
http://bugs.freedesktop.org/show_bug.cgi?id=26686
This bug continues to haunt me. The kernel SET_TILING ioctl is
inconsistent in its return values when reporting an error. If one of its
sanity checks fail, then the input values are left unchanged. If the
kernel later fails to change the tiling mode, then the input values are
modified to match the current tiling on the object. In short, userspace
cannot trust the return values upon error and so we must assume that
upon error our current tiling mode matches reality and not update.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug 26686] Some textures are distorted with libdrm 2.4.18 in GTAVC>A3
[not found] <bug-26686-502@http.bugs.freedesktop.org/>
` (5 preceding siblings ...)
2010-05-24 17:42 ` bugzilla-daemon
@ 2010-05-24 17:44 ` bugzilla-daemon
6 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2010-05-24 17:44 UTC (permalink / raw)
To: dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=26686
--- Comment #9 from Chris Wilson <chris@chris-wilson.co.uk> 2010-05-24 10:44:27 PDT ---
Ruslan, it would be invaluable if you could add an assert(ret == 0); and track
down the source of the EINVAL.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-05-24 17:44 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-26686-502@http.bugs.freedesktop.org/>
2010-02-22 3:56 ` [Bug 26686] Some textures are distorted with libdrm 2.4.18 in GTAVC>A3 bugzilla-daemon
2010-02-22 10:09 ` bugzilla-daemon
2010-02-22 15:17 ` bugzilla-daemon
2010-02-22 16:10 ` bugzilla-daemon
2010-05-24 17:29 ` bugzilla-daemon
2010-05-24 17:42 ` bugzilla-daemon
2010-05-24 17:44 ` bugzilla-daemon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.