Bug 71513

Summary: render_depthrange.c(113) : error C2057: expected constant expression
Product: piglit Reporter: Vinson Lee <vlee>
Component: testsAssignee: Eric Anholt <eric>
Status: RESOLVED FIXED QA Contact: Eric Anholt <eric>
Severity: blocker    
Priority: medium CC: brianp
Version: unspecifiedKeywords: regression
Hardware: x86-64 (AMD64)   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:

Description Vinson Lee 2013-11-11 23:54:35 UTC
mesa: 1348b320d888eeb1144fb3cee58624891bcdbc71 (master)

render_depthrange.c
tests\spec\arb_viewport_array\render_depthrange.c(112) : warning C4305: 'initializing' : truncation from 'double' to 'GLfloat'
tests\spec\arb_viewport_array\render_depthrange.c(113) : error C2057: expected constant expression
tests\spec\arb_viewport_array\render_depthrange.c(113) : error C2466: cannot allocate an array of constant size 0
tests\spec\arb_viewport_array\render_depthrange.c(113) : error C2133: 'colors' : unknown size
tests\spec\arb_viewport_array\render_depthrange.c(159) : warning C4244: 'function' : conversion from 'GLfloat' to 'int', 


commit 16ecdf4bf0a461a26fbf5baa05e535b66ce52c18
Author: Jon Ashburn <jon@lunarg.com>
Date:   Tue Oct 29 09:48:12 2013 -0600

    ARB_viewport_array: Rendering test with multiple depthranges
    
    Draws quads into a single framebuffer surface with multiple viewports
    via a geometry shader.  Each different viewport has a different DepthRange.
    The fragment shader outputs a color based on the depthRange, z, and viewport
    index. Confirm that each quad has the correct color and therefore has
    the correct depthRange for that viewport index.
    
    Tested on Nvidia Quadro 600, test passes.
    
    Reviewed-by: Brian Paul <brianp@vmware.com>
    Signed-off-by: Jon Ashburn <jon@lunarg.com>
Comment 1 Brian Paul 2013-11-12 15:33:39 UTC
Fixed w/ commit 935aaec7a4b710a411e74344ba0d862bd89622ea

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.