From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 93178] Textures are filled with garbage
Date: Tue, 26 Jan 2016 01:27:55 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0435056018=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 767E26E1AD
for ; Mon, 25 Jan 2016 17:27:55 -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
--===============0435056018==
Content-Type: multipart/alternative; boundary="14537716751.ddDB2D31.15295";
charset="UTF-8"
--14537716751.ddDB2D31.15295
Date: Tue, 26 Jan 2016 01:27:55 +0000
MIME-Version: 1.0
Content-Type: text/plain
https://bugs.freedesktop.org/show_bug.cgi?id=93178
Nicolai Hähnle changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |NOTOURBUG
Status|NEW |RESOLVED
--- Comment #5 from Nicolai Hähnle ---
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.
--14537716751.ddDB2D31.15295
Date: Tue, 26 Jan 2016 01:27:55 +0000
MIME-Version: 1.0
Content-Type: text/html
Nicolai Hähnle
changed
bug 93178
| What |
Removed |
Added |
| Resolution |
---
|
NOTOURBUG
|
| Status |
NEW
|
RESOLVED
|
Comment # 5
on bug 93178
from Nicolai Hähnle
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.
--14537716751.ddDB2D31.15295--
--===============0435056018==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0
cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK
--===============0435056018==--