- Feb 17, 2013
-
-
Ian Romanick authored
Signed-off-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Emma Anholt authored
In 2 of our checks, we were missing BREAK and CONTINUE. NOTE: Candidate for the stable branches. Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit bf91f0b0)
-
bma authored
Detect a duplicate Shader type as and error instead of silently allowing it, restrict to ES2 API. v2: Tapani Pälli <tapani.palli@intel.com> - make the check run time instead of compile time v3: chadv - Quote spec on which error to generate. Signed-off-by:
bma <Bo.Ma@windriver.com> Signed-off-by:
Tapani Pälli <tapani.palli@intel.com> Reviewed-and-tested-by:
Chad Versace <chad.versace@linux.intel.com> (cherry picked from commit ce3dfa19)
-
Emma Anholt authored
Fixes broken clipping in supertuxkart and presumably many other applications. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=51471 NOTE: Candidate for the stable branches. Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit cb4616d3)
-
Emma Anholt authored
The hardware just doesn't support it. I suspect this was a regression from the move to fixed MESA_FORMATs for compressed textures and that previously we were storing uncompressed for this or something. Fixes GPU hangs in piglit "texwrap GL_EXT_texture_sRGB-s3tc bordercolor swizzled" on my GM965. Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit ddc2b453)
-
Ian Romanick authored
Signed-off-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Christopher James Halse Rogers authored
_mesa_delete_renderbuffer does not call the driver-specific renderbuffer delete function, so the blorp code was leaking the Intel-specific bits, including some GEM objects. Call the renderbuffer's ->Delete() method instead, which does the right thing. Fixes Unity rapidly sending the machine into the arms of the OOM-killer Note: This is a candidate for the 9.1 branch. Reviewed-by:
Eric Anholt <eric@anholt.net> (cherry picked from commit dd599188)
-
Brian Paul authored
The GL_ARB_texture_rg spec says that we need to support both texturing and rendering for the GL_RED and GL_RG formats. So move the format check up into the rendertarget_mapping[] list. Also, add PIPE_FORMAT_R8_UNORM to the list of formats required. Note: This is a candidate for the stable branches. Reviewed-by:
Marek Olšák <maraeo@gmail.com> (cherry picked from commit 4be5a067)
-
Emma Anholt authored
In GLSL, sampler indices are allocated contiguously from 0. But in the case of ARB_fragment_program (and possibly fixed function), an app that uses texture 0 and 2 will use sampler indices 0 and 2, so we were only allocating space for samplers 0 and 1 and setting up sampler 0. We would read garbage for sampler 2, resulting in flickering textures and an angry simulator. Fixes bad rendering in 0 A.D. and ETQW. This was fixed for pre-gen7 by 28f4be9e Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=25201 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58680 Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org> NOTE: This is a candidate for stable branches. (cherry picked from commit 5bb05c6e)
-
Kenneth Graunke authored
Otherwise, we fail to correctly handle GL_PRIMITIVE_RESTART_FIXED_INDEX. Fixes gles3conform's primitive_restart_mode test. NOTE: This is a candidate for the 9.1 branch. Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Eric Anholt <eric@anholt.net> (cherry picked from commit 8cabe26f)
-
Brian Paul authored
For PIPE_FORMAT_Z24_UNORM_S8_UINT, the Z bits are in the 24 least significant bits. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=60527 and http://bugs.freedesktop.org/show_bug.cgi?id=60524 and http://bugs.freedesktop.org/show_bug.cgi?id=60047 Note: This is a candidate for the stable branches. Reviewed-by:
Jose Fonseca <jfonseca@vmware.com> (cherry picked from commit 4bfdef87)
-
Marek Olšák authored
Tested with softpipe only exposing RGBA formats. NOTE: This is a candidate for the stable branches. Reviewed-by:
Brian Paul <brianp@vmware.com> (cherry picked from commit cb647077)
-
Marek Olšák authored
The Mesa format can be RGBA8888_REV, the format/type can be GL_RGBA/GL_UNSIGNED_BYTE, but the actual texture internal format can be LUMINANCE_ALPHA, INTENSITY, etc. Therefore we should look at the base internal format as well. NOTE: This is a candidate for the stable branches. Reviewed-by:
Brian Paul <brianp@vmware.com> (cherry picked from commit c8379204)
-
Marek Olšák authored
_mesa_base_tex_format doesn't accept GL_BGR and GL_ABGR_EXT, etc. v2: add a (now hopefully complete) helper function to deal with this NOTE: This is a candidate for the stable branches. Reviewed-by:
Brian Paul <brianp@vmware.com> (cherry picked from commit 09a99867)
-
Ian Romanick authored
Older hardware cannot do ARB_texture_rgb10_a2ui, and the translation code for OES_compressed_ETC1_RGB8_texture was never implemented in the i915 driver. NOTE: This is a candidate for all stable branches. Signed-off-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit 0e2f26d5)
-
Roland Scheidegger authored
This optimized filter (when using repeat wrap modes, linear min/mag/mip filters, pot textures) only applies to 2d textures, but nothing prevented it from being used for other textures (likely leading to very bogus sample results). Note: This is a candidate for the 9.0 branch. Reviewed-by:
Jose Fonseca <jfonseca@vmware.com> (cherry picked from commit 66b6d512)
-
Kristian Høgsberg authored
At eglSwapBuffer time, we blindly assume we have a back buffer, but the back buffer only gets allocated when somebody tries to render something. NOTE: This is a candidate for the 9.0 and 9.1 branches. https://bugs.freedesktop.org/show_bug.cgi?id=60086 (cherry picked from commit 1fe00739)
-
Brian Paul authored
We weren't emitting the SVGA_RS_OUTPUTGAMMA state so sRGB rendering didn't work properly. Fixes piglit's framebuffer-srgb test. Note: This is a candidate for the stable branches. Reviewed-by:
Jose Fonseca <jfonseca@vmware.com> (cherry picked from commit ff605091)
-
Brian Paul authored
If we call gl[Copy]TexImage2D() with a generic compression format (e.g. intFormat=GL_COMPRESSED_RGBA) we can't choose a DXT format if we don't have the external DXT compression library. We weren't actually enforcing this before since the pipe_screen::is_format_supported(DXT) query has no dependency on the DXT compression library. Now if we're given a generic compressed format and we can't do DXT compression we'll fall back to a non-compressed format. v2: use util_format_is_s3tc() function and add more comments about the allow_dxt parameter. Note: This is a candidate for the stable branches. Reviewed-by:
Jose Fonseca <jfonseca@vmware.com> (cherry picked from commit 4df42890)
-
Brian Paul authored
When glCompressedTexImage is called the internalFormat is a specific format for the incoming image and the the hardware format should be the same (since we never do format transcoding). So use the simpler _mesa_glenum_to_compressed_format() function. This change is also needed for the next patch. Note: This is a candidate for the stable branches. (cherry picked from commit 478056b8)
-
Michel Dänzer authored
GLX uses mapi/glapi/libglapi.la, which is only built for OpenGL. If the user specified --enable-xlib-glx --disable-opengl, error out, as these cannot be both observed at the same time. If the user just specified --disable-opengl but not --disable-glx, print a warning and disable GLX as well. NOTE: This is a candidate for the stable branches. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59364 Tested-by:
Tom Stellard <thomas.stellard@amd.com> (cherry picked from commit 3b888f53)
-
Stéphane Marchesin authored
Check that the return value from xcb_dri2_swap_buffers_reply is non-NULL before accessing the struct members. Note: This is a candidate for the 9.0 branch. Reviewed-by:
Brian Paul <brianp@vmware.com> (cherry picked from commit 67e7263e)
-
Brian Paul authored
We never really have multisampling with one sample per pixel. See also http://bugs.freedesktop.org/show_bug.cgi?id=59873 Note: This is a candidate for the 9.0 branch. Reviewed-by:
Jose Fonseca <jfonseca@vmware.com> (cherry picked from commit c80bacba)
-
Brian Paul authored
Note: This is a candidate for the 9.0 branch. Reviewed-by:
Jose Fonseca <jfonseca@vmware.com> (cherry picked from commit 8f3c81d0)
-
Brian Paul authored
See previous commit for more info. Note: This is a candidate for the 9.0 branch. Reviewed-by:
José Fonseca <jfonseca@vmware.com> (cherry picked from commit 2180f329)
-
Brian Paul authored
The swrast fragment program interpreter has trouble computing the right texture LOD because it doesn't have easy access to input derivatives. This causes the GLSL-based meta generate mipmap code to fetch texels from the wrong mipmap level. One possible fix would be to set the GL_TEXTURE_MIN/MAX_LOD parameters to limit sampling from the right level. But let's just use the _mesa_generate_mipmap() fallback since it's a lot faster than using the fragment shader interpreter. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=54240 Note: This is a candidate for the 9.0 branch. Reviewed-by:
José Fonseca <jfonseca@vmware.com> (cherry picked from commit 89551ae0)
-
- Feb 15, 2013
-
-
Paul Berry authored
In the GLSL 1.30 spec, section 4.3.6 ("Outputs") says: "If a vertex output is a signed or unsigned integer or integer vector, then it must be qualified with the interpolation qualifier flat." The GLSL ES 3.00 spec further clarifies, in section 4.3.6 ("Output Variables"): "Vertex shader outputs that are, *or contain*, signed or unsigned integers or integer vectors must be qualified with the interpolation qualifier flat." (Emphasis mine.) The language in the GLSL ES 3.00 spec is clearly correct and should be applied to all shading language versions, since varyings that contain ints can't be interpolated, regardless of which shading language version is in use. (Note that in GLSL 1.50 the restriction is changed to apply to fragment shader inputs rather than vertex shader outputs, to accommodate the fact that in the presence of geometry shaders, vertex shader outputs are not necessarily interpolated. That will be addressed by a future patch). NOTE: This is a candidate for stable branches. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Anuj Phogat <anuj.phogat@gmail.com> (cherry picked from commit 93c91348)
-
Paul Berry authored
From GLSL ES 3.00 section 4.5.4 ("Default Precision Qualifiers"): "The precision statement precision precision-qualifier type; can be used to establish a default precision qualifier. The type field can be either int or float or any of the sampler types, and the precision-qualifier can be lowp, mediump, or highp." GLSL ES 1.00 has similar language. GLSL 1.30 doesn't allow precision qualifiers on sampler types, but this seems like an oversight (since the intention of including these in GLSL 1.30 is to allow compatibility with ES shaders). Previously, Mesa followed GLSL 1.30 and only allowed default precision qualifiers to be set for float and int. This patch makes it follow GLSL ES rules in all cases. Fixes Piglit tests default-precision-sampler.{vert,frag}. Partially addresses https://bugs.freedesktop.org/show_bug.cgi?id=60737 . NOTE: This is a candidate for stable branches. Reviewed-by:
Eric Anholt <eric@anholt.net> (cherry picked from commit d5948f2f)
-
Michel Dänzer authored
8 more little piglits. NOTE: This is a candidate for the 9.1 branch. (cherry picked from commit c840270e)
-
Michel Dänzer authored
(cherry picked from commit f34ad857)
-
With the llvm patches, fixing 14 piglit tests in total. v2: increase the const limit v3: document the const limit Signed-off-by:
Christian König <christian.koenig@amd.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> (cherry picked from commit 8c80894f)
-
Signed-off-by:
Christian König <christian.koenig@amd.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> (cherry picked from commit 8514f5ac)
-
- Feb 13, 2013
-
-
Tom Stellard authored
This is required when LLVM is built with CMake, which creates one shared library for each component. (cherry picked from commit 0898047e)
-
Matt Turner authored
This reverts commit 2906e203. Fixes a regression in the glean depthStencil test. Reverting this does not affect any tests in es3conform, so a more recent patch must have also fixed the failure this one was intended to fix. Reported-by:
lu hua <huax.lu@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59494 (cherry picked from commit a527b219)
-
Tom Stellard authored
-
- Feb 12, 2013
-
-
Jerome Glisse authored
Seems that alpha test being enabled confuse the GPU on the order in which it should perform the Z testing. So force the order programmed throught db shader control. v2: Only force z order when alpha test is enabled v3: Update db shader when binding new dsa + spelling fix Signed-off-by:
Jerome Glisse <jglisse@redhat.com> Reviewed-by:
Marek Olšák <maraeo@gmail.com> (cherry picked from commit 974b482a)
-
Jordan Justen authored
In OpenGL 4.3, new language was added that would require this check. But, if this check results in broken applications then perhaps it will be reversed. For now, remove this check and re-evaluate when desktop GL 4.3 is closer. NOTE: This is a candidate for the 9.1 branch. Signed-off-by:
Jordan Justen <jordan.l.justen@intel.com> Reviewed-by:
Anuj Phogat <anuj.phogat@gmail.com>
-
Morgane Glidic authored
The third argument of AC_ARG_WITH is evaluated for any provided value, not only on --with-, so it must not force-enable the feature Also, setting $with_llvm_shared_libs in the opencl check was overriding the user switch https://bugs.freedesktop.org/show_bug.cgi?id=59851 Signed-off-by:
Quentin Glidic <sardemff7+git@sardemff7.net> (cherry picked from commit 1e857130)
-
Tom Stellard authored
RV670 belongs in the R600 chip class https://bugs.freedesktop.org/show_bug.cgi?id=58666 NOTE: This is a candidate for the 9.1 branch (cherry picked from commit 257006e2)
-
- Feb 11, 2013
-
-
Jerome Glisse authored
The blit must be aligned on 8 horizontal block. v2: no need to align the reminder Signed-off-by:
Jerome Glisse <jglisse@redhat.com> (cherry picked from commit 323a4488)
-