Bug 110724 - Unhandled GL format: 0x8058
Summary: Unhandled GL format: 0x8058
Status: RESOLVED NOTABUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: 19.0
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-22 11:23 UTC by Alberto Salvia Novella
Modified: 2019-05-24 04:54 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
RPCS3.log (405.26 KB, text/x-log)
2019-05-22 11:23 UTC, Alberto Salvia Novella
Details
apitrace.tar.gz (103.14 KB, application/gzip)
2019-05-22 17:12 UTC, Alberto Salvia Novella
Details

Description Alberto Salvia Novella 2019-05-22 11:23:33 UTC
Created attachment 144317 [details]
RPCS3.log

As reported at:
https://github.com/RPCS3/rpcs3/issues/6004

When I try to run a game on the rpcs3 emulator, it crashes with:
Unhandled GL format: 0x8058

Which downstream points to be a bug in Mesa. Comment is:
"On your system glGetTexLevelParameteriv is not returning the bit sizes for the color channels"

Operating System: Manjaro Linux Stable
Graphics Card: Radeon HD5870
Driver: Mesa 19.0.4
Comment 1 Brian Paul 2019-05-22 15:13:35 UTC
I can't reproduce this with a simple test program.  Could you try creating an apitrace of the issue?
Comment 2 Alberto Salvia Novella 2019-05-22 17:12:21 UTC
Created attachment 144320 [details]
apitrace.tar.gz
Comment 3 Tapani Pälli 2019-05-23 08:41:36 UTC
Playback of the trace throws following error:
Mesa: User error: GL_INVALID_VALUE in glTexStorage2D(width, height or depth < 1)

It looks like the emulator is making following invalid call:
   glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA8, 0, 0);

spec says:
   "GL_INVALID_VALUE is generated if width, height or levels are less than 1."
Comment 4 Tapani Pälli 2019-05-23 08:43:48 UTC
And because glTexStorage2D fails it is likely that is why the following glGetTexLevelParameteriv for that texture fail.
Comment 5 Alberto Salvia Novella 2019-05-23 08:57:48 UTC
So is this a bug in the emulator itself?
Comment 6 Alberto Salvia Novella 2019-05-23 09:07:04 UTC
Reported this info as:
https://github.com/RPCS3/rpcs3/issues/6007
Comment 7 Tapani Pälli 2019-05-24 04:54:00 UTC
Alberto, I read discussion in rpcs3/issue and it looks like this happened due to installation issue. Based on this I'm resolving this as NOTABUG.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.