Bug 74917

Summary: [PNV/ILK Bisected]Many piglit cases fail
Product: Mesa Reporter: lu hua <huax.lu>
Component: Drivers/DRI/i915Assignee: Ian Romanick <idr>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: high CC: imamdxl8805
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description lu hua 2014-02-13 06:27:56 UTC
System Environment:
--------------------------
Platform: Pineview/Ironlake
Libdrm:		(master)libdrm-2.4.52-3-g128e74cf6492025e63e035566bd6e2203e8da5e1
Mesa:		(master)025d99ce3cea21c9ecea77b95655c0c838b2fa3c
Xserver:	(master)xorg-server-1.15.0-624-g30c3852bda7f60b0ffb1bb2f6ed8ba8800001b32
Xf86_video_intel:(master)2.99.910-4-gc02067dcf514f19beb0e17b5765826148386e673
Cairo:		(master)4144307dbfbe7b297135d9ea4b080cae7e06b997
Libva:		(staging)1325ad0901a97ef7f88edb6cf61cf5f9ddbe2835
Libva_intel_driver:(staging)c25fe67b1f1e269dc8d0152ce883788ef9288aea
Kernel:	(drm-intel-nightly) 164a4cb4c1431a0689f85507868356fae24da638

Bug detailed description:
-----------------------------
Many piglit cases fail on Pineview/Ironlake with Mesa master branch. It doesn't happen on 10.0 branch.
Following cases fail:
shaders_glsl-lod-bias
spec_ARB_ES2_compatibility_FBO_blit_from_missing_attachment_(ES2_completeness_rules)
spec_ARB_ES2_compatibility_FBO_blit_to_missing_attachment_(ES2_completeness_rules)
spec_ARB_fragment_program_fp-fragment-position
spec_ARB_framebuffer_object_fbo-drawbuffers-none_glBlitFramebuffer
spec_ARB_framebuffer_object_fbo-scissor-blit_fbo
spec_ARB_framebuffer_object_fbo-scissor-blit_window
spec_ARB_framebuffer_object_FBO_blit_from_missing_attachment
spec_ARB_framebuffer_object_FBO_blit_to_missing_attachment
spec_ARB_framebuffer_object_framebuffer-blit-levels_draw_depth
spec_ARB_framebuffer_object_framebuffer-blit-levels_read_depth
spec_ARB_framebuffer_sRGB_blit_renderbuffer_linear_scaled_disabled
spec_ARB_framebuffer_sRGB_blit_renderbuffer_linear_scaled_enabled
spec_ARB_framebuffer_sRGB_blit_renderbuffer_linear_to_srgb_scaled_disabled
spec_ARB_framebuffer_sRGB_blit_renderbuffer_linear_to_srgb_scaled_enabled
spec_ARB_framebuffer_sRGB_blit_renderbuffer_srgb_scaled_disabled
spec_ARB_framebuffer_sRGB_blit_renderbuffer_srgb_scaled_enabled
spec_ARB_framebuffer_sRGB_blit_renderbuffer_srgb_to_linear_scaled_disabled
spec_ARB_framebuffer_sRGB_blit_renderbuffer_srgb_to_linear_scaled_enabled
spec_ARB_framebuffer_sRGB_blit_texture_linear_scaled_disabled
spec_ARB_framebuffer_sRGB_blit_texture_linear_scaled_enabled
spec_ARB_framebuffer_sRGB_blit_texture_linear_to_srgb_scaled_disabled
spec_ARB_framebuffer_sRGB_blit_texture_linear_to_srgb_scaled_enabled
spec_ARB_framebuffer_sRGB_blit_texture_srgb_scaled_disabled
spec_ARB_framebuffer_sRGB_blit_texture_srgb_scaled_enabled
spec_ARB_framebuffer_sRGB_blit_texture_srgb_to_linear_scaled_disabled
spec_ARB_framebuffer_sRGB_blit_texture_srgb_to_linear_scaled_enabled
spec_ARB_sampler_objects_framebufferblit
spec_EXT_framebuffer_blit_fbo-srgb-blit
spec_EXT_framebuffer_object_fbo-generatemipmap
spec_EXT_framebuffer_object_fbo-generatemipmap-filtering
spec_EXT_framebuffer_object_fbo-generatemipmap-nonsquare
spec_EXT_framebuffer_object_fbo-generatemipmap-npot
spec_EXT_framebuffer_object_fbo-generatemipmap-scissor
spec_EXT_framebuffer_object_fbo-generatemipmap-viewport
spec_EXT_framebuffer_object_getteximage-formats_init-by-rendering
spec_EXT_packed_depth_stencil_fbo-blit-d24s8
spec_EXT_texture_compression_rgtc_rgtc-teximage-01
spec_EXT_texture_compression_rgtc_rgtc-teximage-02

spec_3DFX_texture_compression_FXT1_fbo-generatemipmap-formats
spec_ARB_depth_buffer_float_fbo-depth-GL_DEPTH32F_STENCIL8-blit
spec_ARB_depth_buffer_float_fbo-depth-GL_DEPTH_COMPONENT32F-blit
spec_ARB_depth_buffer_float_fbo-depthstencil-GL_DEPTH32F_STENCIL8-blit
spec_ARB_framebuffer_object_fbo-blit-stretch
spec_ARB_depth_buffer_float_fbo-stencil-GL_DEPTH32F_STENCIL8-blit
spec_ARB_depth_texture_fbo-depth-GL_DEPTH_COMPONENT16-blit
spec_ARB_depth_texture_fbo-depth-GL_DEPTH_COMPONENT24-blit
spec_ARB_depth_texture_fbo-depth-GL_DEPTH_COMPONENT32-blit
spec_ARB_texture_compression_fbo-generatemipmap-formats
spec_ARB_texture_float_fbo-generatemipmap-formats
spec_EXT_framebuffer_object_fbo-generatemipmap-formats
spec_ARB_texture_rg_fbo-generatemipmap-formats
spec_ARB_texture_rg_fbo-generatemipmap-formats-float
spec_ARB_ES2_compatibility_fbo-generatemipmap-formats
spec_EXT_framebuffer_object_fbo-stencil-GL_STENCIL_INDEX1-blit
spec_EXT_framebuffer_object_fbo-stencil-GL_STENCIL_INDEX16-blit
spec_EXT_packed_depth_stencil_fbo-depth-GL_DEPTH24_STENCIL8-blit
spec_EXT_packed_depth_stencil_fbo-depthstencil-GL_DEPTH24_STENCIL8-blit
spec_EXT_packed_depth_stencil_fbo-stencil-GL_DEPTH24_STENCIL8-blit
spec_EXT_packed_float_fbo-generatemipmap-formats
spec_EXT_framebuffer_object_fbo-stencil-GL_STENCIL_INDEX4-blit
spec_EXT_framebuffer_object_fbo-stencil-GL_STENCIL_INDEX8-blit
spec_EXT_texture_compression_rgtc_fbo-generatemipmap-formats
spec_EXT_texture_compression_s3tc_fbo-generatemipmap-formats
spec_EXT_texture_compression_s3tc_gen-compressed-teximage
spec_EXT_texture_compression_s3tc_getteximage-targets_S3TC_2D
spec_EXT_texture_compression_s3tc_getteximage-targets_S3TC_CUBE
spec_EXT_texture_sRGB_fbo-generatemipmap-formats
spec_EXT_texture_sRGB_fbo-generatemipmap-formats-s3tc
spec_NV_conditional_render_copytexsubimage
spec_NV_conditional_render_generatemipmap
spec_OpenGL_1.1_depthstencil-default_fb-blit
spec_OpenGL_1.1_getteximage-formats
spec_SGIS_generate_mipmap_gen-teximage
spec_SGIS_generate_mipmap_gen-texsubimage

Bisect shows: 10f7c544772a4b0b1f69d8e9fe4efd593c94418b is the first bad commit.
commit 10f7c544772a4b0b1f69d8e9fe4efd593c94418b
Author:     Ian Romanick <ian.d.romanick@intel.com>
AuthorDate: Mon Dec 16 15:35:02 2013 -0800
Commit:     Eric Anholt <eric@anholt.net>
CommitDate: Tue Feb 11 16:00:12 2014 -0800

    meta: Expand texture coordinate from vec3 to vec4

    This will be necessary to support cubemap array textures because they
    use all four components.

    Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
    Reviewed-by: Eric Anholt <eric@anholt.net>

run  ./bin/glsl-lod-bias -fbo -auto
output:
Mesa 10.2.0-devel implementation error: meta program compile failed:
0:6(12): error: value of type vec3 cannot be assigned to variable of type vec4

source:
attribute vec2 position;
attribute vec3 textureCoords;
varying vec4 texCoords;
void main()
{
   texCoords = textureCoords;
   gl_Position = vec4(position, 0.0, 1.0);
}


Please report at https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa
Probe color at (75,2)
  Expected: 0.000000 1.000000 0.000000
  Observed: 0.600000 0.600000 0.600000
Probe color at (141,2)
  Expected: 0.000000 1.000000 0.000000
  Observed: 0.600000 0.600000 0.600000
Probe color at (207,2)
  Expected: 0.000000 1.000000 0.000000
  Observed: 0.600000 0.600000 0.600000
Probe color at (273,2)
  Expected: 0.000000 1.000000 0.000000
  Observed: 0.600000 0.600000 0.600000
PIGLIT: {'result': 'fail' }

Reproduce steps:
----------------------------
1. xinit
2. ./bin/glsl-lod-bias -fbo -auto
Comment 1 Ian Romanick 2014-02-13 18:33:36 UTC
*** Bug 74923 has been marked as a duplicate of this bug. ***
Comment 2 Ian Romanick 2014-02-13 18:34:28 UTC

*** This bug has been marked as a duplicate of bug 74911 ***
Comment 3 lu hua 2014-02-21 05:14:32 UTC
Verified.Fixed.

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.