• Gert Wollny's avatar
    shader: emulate sampler2D*Rect by using sampler2D* · 95f10f02
    Gert Wollny authored
    On GLES *Rect textures are not supported and emulated by using a normal
    2D texture. Therefore, the texture coordinates must be normalized for
    these cases and the LOD must be set to 0.
    
    Fixes: piglits
       textureGather with 2DRECT texture
       arb_fragment_program_shadow/tex-shadow2drect
       arb_fragment_program_shadow/txp-shadow2drect
       glsl-fs-texture2drect -proj3 and -proj4
    
    Related: #81  (some non-shader tests still fail for rect textures)
    
    v2: - Reorder some conditions to make the control flow easier to follow
        - correct WS (both Gurchetan)
    
    Remark: For some of these piglits one must currently force GL 3.3 in the
            guest, otherwise they fail because of GLSL version 1.50 not being
            supported.
    Signed-off-by: Gert Wollny's avatarGert Wollny <gert.wollny@collabora.com>
    Reviewed-by: <Gurchetan Singh gurchetansingh@chromium.org>
    95f10f02
Name
Last commit
Last update
build-aux Loading commit data...
ci Loading commit data...
docs Loading commit data...
scripts Loading commit data...
src Loading commit data...
tests Loading commit data...
vtest Loading commit data...
.dir-locals.el Loading commit data...
COPYING Loading commit data...
Makefile.am Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
git.mk Loading commit data...
virglrenderer.pc.in Loading commit data...