Bug 43359

Summary: texture3D failed to link in vertex shader
Product: Mesa Reporter: Ouping Zhang <ouping.zhang>
Component: glsl-compilerAssignee: Ian Romanick <idr>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: texture3D test case

Description Ouping Zhang 2011-11-29 19:25:46 UTC
Created attachment 53963 [details]
texture3D test case

System Environment:
--------------------------
Kernel:         (drm-intel-next)9a10f401a401ca69c6537641c8fc0d6b57b5aee8
Libdrm:         (master)2.4.27-3-g37ccce5e390a9d757474920f488cafa1cf89854a
Xserver:        (master)xorg-server-1.11.99.1-43-gb2015a2c01711646bb7ae23d684abee0cd55d4d0
Xf86_video_intel:(master)2.17.0-38-g5b1e9e15738b9001346ab6e0166f861ce308008e

Bug detailed description:
-------------------------
texture3D failed to link in vertex shader, error: Too many vertex shader texture samplers.
the case at the attached can reproduce this issue.
Comment 1 Ouping Zhang 2011-12-22 23:15:06 UTC
System Environment:
--------------------------
Libdrm:         (master)2.4.29-3-gef20301a11afae50bfe127002913dbd0b81ddccc
Mesa:           (master)f1d89638c02afafbf82ef657cd6ba9965dad6738
Xserver:        (master)xorg-server-1.11.99.2-16-gfcda98c48610fd507ca0b89c6006a5497d9dc1c9
Xf86_video_intel:(master)2.17.0-193-g34cfa15e522ba486d591d37f37d494e399f70354

with the latest mesa to verify, the issue can't be reproduced.
Comment 2 Anuj Phogat 2011-12-23 13:25:55 UTC
Similar to Bug 43360

Verified the functionality using following shaders:
static const char *vertShaderText =
        "uniform sampler3D tex3D;\n"
        "varying vec4 texcolor;\n"
        "void main()\n"
        "{\n"
        " gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;\n"
        " texcolor  = texture3D(tex3D, gl_MultiTexCoord0.xyz);\n"
        "}\n";


static const char *fragShaderText =
        "varying vec4 texcolor;\n"
        "void main()\n"
        "{\n"
        " gl_FragColor = vec4(texcolor.xyz, 1.0);\n"
        "}\n";

Seems like nothing need to be done for this bug.
Comment 3 Ian Romanick 2011-12-23 17:35:01 UTC
All of bug #29522, bug #43359, and bug #43360 should be fixed by the recent addition of vertex texture support to the i965 driver.

*** This bug has been marked as a duplicate of bug 29522 ***

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.