From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 93178] Textures are filled with garbage
Date: Tue, 26 Jan 2016 01:27:55 +0000 [thread overview]
Message-ID: <bug-93178-502-sJKezxf2sw@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-93178-502@http.bugs.freedesktop.org/>
[-- Attachment #1.1: Type: text/plain, Size: 1788 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=93178
Nicolai Hähnle <nhaehnle@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |NOTOURBUG
Status|NEW |RESOLVED
--- Comment #5 from Nicolai Hähnle <nhaehnle@gmail.com> ---
This is a game bug.
The game tries to be clever by uploading some of its textures from a different
OpenGL context, but never uses any kind of synchronization between the texture
upload and the main context, so the texture upload never actually happens. This
is a serious programming mistake, and it is merely by chance that this works on
other drivers.
For your own purposes, you can work around the game bug in the driver by
applying the following patch:
---- SNIP ----
--- a/src/gallium/drivers/radeon/r600_texture.c
+++ b/src/gallium/drivers/radeon/r600_texture.c
@@ -105,6 +105,7 @@ static void r600_copy_from_staging_texture(struct
pipe_context *ctx, struct r600
rctx->dma_copy(ctx, dst, transfer->level,
transfer->box.x, transfer->box.y, transfer->box.z,
src, 0, &sbox);
+ rctx->b.flush(&rctx->b, NULL, 0);
}
static unsigned r600_texture_get_offset(struct r600_texture *rtex, unsigned
level,
---- SNIP ----
However, doing this seriously hurts the performance of games that are
programmed properly. I encourage you to forward this message to the developers,
telling them they should take a look at Section 5.3.1 of the OpenGL 4.5
(Compatibility Profile) specification, specifically the part about using Finish
or FenceSync/WaitSync.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 3259 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-01-26 1:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-30 19:21 [Bug 93178] Textures are filled with garbage bugzilla-daemon
2015-11-30 19:22 ` bugzilla-daemon
2015-11-30 19:25 ` bugzilla-daemon
2015-12-01 3:28 ` bugzilla-daemon
2015-12-01 6:41 ` bugzilla-daemon
2015-12-01 8:11 ` bugzilla-daemon
2015-12-02 11:47 ` bugzilla-daemon
2016-01-26 1:27 ` bugzilla-daemon [this message]
2016-03-24 15:21 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-93178-502-sJKezxf2sw@http.bugs.freedesktop.org/ \
--to=bugzilla-daemon@freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).