Bug 59072 - [i965 Bisected]Piglit spec/EXT_texture_snorm/get-renderbuffer-internalformat fails
Summary: [i965 Bisected]Piglit spec/EXT_texture_snorm/get-renderbuffer-internalformat ...
Status: VERIFIED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium major
Assignee: Eric Anholt
QA Contact:
URL:
Whiteboard:
Keywords:
: 59094 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-06 02:00 UTC by lu hua
Modified: 2013-02-26 05:54 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description lu hua 2013-01-06 02:00:57 UTC
System Environment:
--------------------------
Arch:           x86_64
Platform:       Sandybridge
Libdrm:	(master)libdrm-2.4.40-5-gbaf0a7daafc7636106e1b19267ed22e22b1a2283
Mesa:	(master)2f358feda311570610729658cfc2897090c14327
Xserver:(master)xorg-server-1.13.99.901
Xf86_video_intel:(master)2.20.17-43-gb5b3cfb0ad1cc5e66c99035f526946bf41011e13 Cairo:	(master)9194904fa838a115b4dc58e5bff7a235cc2a9a7a
Libva:	(staging)2e11d2273b2974a7d1959cbcaf8db5b8e9aedd9e
Libva_intel_driver:(staging)e01e94d312a0b23764367e87958c23bf76e6a782
Kernel:	(drm-intel-nightly) 071f0a705c081ed6b1d61b6fa8be969a5b15ddf8

Bug detailed description:
-------------------------
It fails on Ironlake, Sandybridge, Ivybridge, Haswell with mesa master branch,
Works well on 9.0 branch.
Bisect shows:4b92379da213c85998643997deef945b6e7fb7a7 is the first bad commit.
commit 4b92379da213c85998643997deef945b6e7fb7a7
Author:     Ian Romanick <ian.d.romanick@intel.com>
AuthorDate: Sat Dec 1 11:06:48 2012 -0800
Commit:     Ian Romanick <ian.d.romanick@intel.com>
CommitDate: Fri Jan 4 17:39:05 2013 -0800

    mesa: Disallow deprecated SNORM formats for renderbuffers

    The OpenGL 3.2 core profile spec says:

        "The following base internal formats from table 3.11 are
        color-renderable: RED, RG, RGB, and RGBA. The sized internal formats
        from table 3.12 that have a color-renderable base internal format
        are also color-renderable. No other formats, including compressed
        internal formats, are color-renderable."

    The OpenGL 3.2 compatibility profile spec says (only ALPHA is added):

        "The following base internal formats from table 3.16 are
        color-renderable: ALPHA, RED, RG, RGB, and RGBA. The sized internal formats
        from table 3.17 that have a color-renderable base internal format
        are also color-renderable. No other formats, including compressed
        internal formats, are color-renderable."

output:
Using test set: GL_EXT_texture_snorm
Testing GL_RED_SNORM: OK
Testing GL_R8_SNORM: OK
Testing GL_RG_SNORM: OK
Testing GL_RG8_SNORM: OK
Testing GL_RGB_SNORM: OK
Testing GL_RGB8_SNORM: OK
Testing GL_RGBA_SNORM: OK
Testing GL_RGBA8_SNORM: OK
Testing GL_ALPHA_SNORM: OK
Testing GL_ALPHA8_SNORM: OK
Testing GL_LUMINANCE_SNORM: FAIL (GL_RGBA instead of GL_LUMINANCE_SNORM)
Testing GL_LUMINANCE8_SNORM: FAIL (GL_RGBA instead of GL_LUMINANCE8_SNORM)
Testing GL_LUMINANCE_ALPHA_SNORM: FAIL (GL_RGBA instead of GL_LUMINANCE_ALPHA_SNORM)
Testing GL_LUMINANCE8_ALPHA8_SNORM: FAIL (GL_RGBA instead of GL_LUMINANCE8_ALPHA8_SNORM)
Testing GL_INTENSITY_SNORM: FAIL (GL_RGBA instead of GL_INTENSITY_SNORM)
Testing GL_INTENSITY8_SNORM: FAIL (GL_RGBA instead of GL_INTENSITY8_SNORM)
Testing GL_R16_SNORM: OK
Testing GL_RG16_SNORM: OK
Testing GL_RGB16_SNORM: OK
Testing GL_RGBA16_SNORM: OK
Testing GL_ALPHA16_SNORM: OK
Testing GL_LUMINANCE16_SNORM: FAIL (GL_RGBA instead of GL_LUMINANCE16_SNORM)
Testing GL_LUMINANCE16_ALPHA16_SNORM: FAIL (GL_RGBA instead of GL_LUMINANCE16_ALPHA16_SNORM)
Testing GL_INTENSITY16_SNORM: FAIL (GL_RGBA instead of GL_INTENSITY16_SNORM)
PIGLIT: {'result': 'fail' }

Reproduce steps:
----------------
1. start X
2. ./bin/get-renderbuffer-internalformat GL_EXT_texture_snorm -auto -fbo
Comment 1 Eric Anholt 2013-01-11 00:09:30 UTC
Just a testcase bug, naturally.  patch sent.
Comment 2 Vinson Lee 2013-01-21 23:03:46 UTC
*** Bug 59094 has been marked as a duplicate of this bug. ***
Comment 3 Eric Anholt 2013-02-06 00:49:52 UTC
commit 48940da0e035a986a8d490dab795a2bff15d4486
Author: Eric Anholt <eric@anholt.net>
Date:   Thu Jan 10 16:07:44 2013 -0800

    get-renderbuffer-internalformat: Skip testing unsupported enums.
    
    With the change to ban deprecated-format SNORM renderbuffers in Mesa,
    these now throw GL_INVALID_ENUM.  Catch it and skip those subtests.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59072
Comment 4 lu hua 2013-02-26 05:54:36 UTC
Verified.Fixed on latest mesa master branch.


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.