- 06 Feb, 2013 9 commits
-
-
Marek Olšák authored
based on the intel driver Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Marek Olšák authored
EmitCondCodes is always false. Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Marek Olšák authored
+35 piglits
-
Marek Olšák authored
Reviewed-by:
Tom Stellard <thomas.stellard@amd.com>
-
Marek Olšák authored
The GLSL compiler can simplify clamp(v,0,1) to saturate. The state tracker doesn't use it yet, but it will. Reviewed-by:
Tom Stellard <thomas.stellard@amd.com>
-
Marek Olšák authored
Change DST_ALPHA to ONE.
-
Marek Olšák authored
NOTE: This is a candidate for the stable branches.
-
Jose Fonseca authored
I'd like to test Mesa OpenGL ES along side with NVIDIA libGL drivers. But without this change, I get a NULL pointer dereference. Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Vinson Lee authored
Fixes uninitialized pointer field defect reported by Coverity. Signed-off-by:
Vinson Lee <vlee@freedesktop.org> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
- 05 Feb, 2013 4 commits
-
-
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>
-
Tom Stellard authored
-
Michel Dänzer authored
It has new PCI IDs and an important tiled surface layout fix.
-
Eric Anholt authored
v2/Kayden: Also disable write masking in the vec4 backend. Fixes 78 oglconform glsl-bif-tex-* subcases. Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Paul Berry <stereotype441@gmail.com> [v1] Reviewed-by: Eric Anholt <eric@anholt.net> [v2]
-
- 04 Feb, 2013 27 commits
-
-
Tapani Pälli authored
Strangely, the DRIimage interface we have passes the pitch in pixels instead of bytes, which anholt missed in the change to using bytes for region pitch. Signed-off-by:
Tapani Pälli <tapani.palli@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Eric Anholt authored
If you look up a level that isn't in the miptree, you crash. Reviewed-by:
Chad Versace <chad.versace@linux.intel.com>
-
Alex Deucher authored
Signed-off-by:
Alex Deucher <alexander.deucher@amd.com> Note: this is a candidate for the 9.1 branch.
-
Alex Deucher authored
That should work in all cases. Signed-off-by:
Alex Deucher <alexander.deucher@amd.com> Note: this is a candidate for the 9.1 branch.
-
Alex Deucher authored
Signed-off-by:
Alex Deucher <alexander.deucher@amd.com> Note: this is a candidate for the 9.1 branch
-
Paul Berry authored
Since transform feedback needs to be able to access individual fields of varying structs, we can no longer match up the arguments to glTransformFeedbackVaryings() with variables in the vertex shader. Instead, we build up a hashtable which records information about each possible name that is a candidate for transform feedback, and then match up the arguments to glTransformFeedbackVaryings() with the contents of that hashtable. Populating the hashtable uses the program_resource_visitor infrastructure, so the logic is shared with how we handle uniforms. NOTE: This is a candidate for the 9.1 branch. Reviewed-by:
Jordan Justen <jordan.l.justen@intel.com> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Paul Berry authored
Previously, transform feedback varyings were parsed in an ad-hoc fashion that wasn't compatible with structs (or array of structs). This patch makes it use parse_program_resource_name(), which correctly handles both. Note that parse_program_resource_name()'s technique for handling mal-formed input strings is to simply let them through and rely on the fact that a future name lookup will fail. Because of this, tfeedback_decl::init() no longer needs to return a boolean error code--it always succeeds, and if the input was mal-formed the error will be detected later. NOTE: This is a candidate for the 9.1 branch. Reviewed-by:
Jordan Justen <jordan.l.justen@intel.com> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Paul Berry authored
There's actually nothing uniform-specific in uniform_field_visitor. It is potentially useful for all kinds of program resources (in particular, future patches will use it for transform feedback varyings). This patch renames it to program_resource_visitor, and clarifies several comments, to reflect the fact that it is useful for more than just uniforms. NOTE: This is a candidate for the 9.1 branch. Reviewed-by:
Jordan Justen <jordan.l.justen@intel.com> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Paul Berry authored
The parsing logic is moved to a new function in the GLSL module, parse_program_resource_name(). This name was chosen because it should eventually be useful for handling everything that OpenGL 4.3 calls "program resources" (e.g. uniforms, vertex inputs, fragment outputs, and transform feedback varyings). Future patches will make use of this function for linking transform feedback varyings. NOTE: This is a candidate for the 9.1 branch. Reviewed-by:
Jordan Justen <jordan.l.justen@intel.com> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Quentin Glidic authored
NOTE: This is a candidate for the 9.1 branch. Reviewed-by:
Matt Turner <mattst88@gmail.com> Signed-off-by:
Quentin Glidic <sardemff7+git@sardemff7.net>
-
Abdiel Janulgue authored
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=60212Tested-by:
Scott Moreau <oreaus@gmail.com> Tested-by:
Tiago Vignatti <tiago.vignatti@intel.com> Reviewed-by:
Chad Versace <chad.versace@linux.intel.com> Signed-off-by:
Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
-
Matt Turner authored
Previously we were relying on CFLAGS_FOR_BUILD to be the same as CFLAGS when not cross compiling, but this assumption didn't take into consideration 32-bit builds on 64-bit systems. More generally, not honoring CFLAGS is bad. Automake is evidently too stupid to accept if CROSS_COMPILING CC = @CC_FOR_BUILD@ ... else CC = @CC@ endif without warning that CC has been already defined. The warnings are harmless, but I'd prefer to avoid future reports about them, so define proxy variables, which are assigned inside the conditional and then unconditionally assigned to CC et al. NOTE: This is a candidate for the 9.1 branch. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59737 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=60038
-
Brian Paul authored
-
Brian Paul authored
Initially, only softpipe/llvmpipe support SQRT.
-
Brian Paul authored
-
Brian Paul authored
-
Brian Paul authored
The glsl-to-tgsi translater will emit SQRT to implement GLSL's sqrt() and distance() functions if the PIPE_SHADER_CAP_TGSI_SQRT_SUPPORTED query says it's supported by the driver. Otherwise, sqrt(x) is implemented with x*rsq(x). The problem with this is sqrt(0) must be handled specially because rsq(0) might be Inf/NaN/undefined (and then 0*rsq(0) is Inf/Nan/undefined). In the glsl-to-tgsi code we use an extra CMP to check if x is zero and then replace the result of x*rsq(x) with zero. In the end, this makes sqrt() generate much more reasonable code for drivers that can do square roots. Note that many of piglit's generated shader tests use the GLSL distance() function.
-
Michel Dänzer authored
The hardware can't do it, and these were causing warnings in some piglit tests. NOTE: This is a candidate for the 9.1 branch.
-
Michel Dänzer authored
28/30 piglit tests pass. NOTE: This is a candidate for the 9.1 branch.
-
Michel Dänzer authored
In particular, the LOD bias and depth comparison values are packed before the 'normal' texture coordinates, and the array slice and LOD values are appended. NOTE: This is a candidate for the 9.1 branch.
-
Michel Dänzer authored
Fix up intrinsic names, and bitcast texture address parameters to integers. NOTE: This is a candidate for the 9.1 branch.
-
Brian Paul authored
In particular, rework the sRGB/linear format selection code. There's no reason to mess with the Mesa format. Just do everything in terms of the gallium pipe_format. Reviewed-by:
Marek Olšák <maraeo@gmail.com>
-
Brian Paul authored
That was the only place it was being called from.
-
Brian Paul authored
The code before was getting a pipe format, then calling st_pipe_format_to_mesa_format() and then converting back again with st_mesa_format_to_pipe_format(). This removes one conversion step.
-
Andreas Boll authored
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=60098Signed-off-by:
Brian Paul <brianp@vmware.com>
-
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>
-
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.
-