summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2011-01-30egl: Make the transition to built-in drivers more smooth.Chia-I Wu
When the user sets EGL_DRIVER to egl_dri2 (or egl_glx), make sure the built-in driver is used. The user might leave the outdated egl_dri2.so (or egl_glx.so) on the filesystem and we do not want to load it.
2011-01-29mapi: Workaround a bug in makedepend.Chia-I Wu
makedepend would crash when a source includes a header indirectly, such as #define HEADER "some-header.h" #include HEADER Do not define HEADER (makedepend would detects this as an incomplete include) and add the dependency manually in the Makefile. This should hopefully fix bug #33374.
2011-01-29u_blitter: use user buffers instead of real buffersMarek Olšák
User buffers may be the fastest way to upload data.
2011-01-28gallium/docs: add info about transfer boxes and array texturesBrian Paul
2011-01-28gallium: added comments to pipe_transferBrian Paul
2011-01-28st/mesa: fix texture array dimensionsBrian Paul
For 1D/2D texture arrays use the pipe_resource::array_size field. In OpenGL 1D arrays texture use the height dimension as the array size and 2D array textures use the depth dimension as the array size. Gallium uses a special array_size field instead. When setting up gallium textures or comparing Mesa textures to gallium textures we need to be extra careful that we're comparing the right fields. The new st_gl_texture_dims_to_pipe_dims() function maps OpenGL texture dimensions to gallium texture dimensions and simplifies this quite a bit.
2011-01-28softpipe: fix array textures to use resource array_sizeBrian Paul
Don't use height for 1D array textures or depth for 2D array textures.
2011-01-28mesa: fix typo, wrap long lineBrian Paul
2011-01-28st/mesa: pass layers param to st_texture_create()Brian Paul
2011-01-29Revert "glcpp: Demote "macro redefined" from an error to a warning"Carl Worth
This reverts commit d3df641f0aba99b0b65ecd4d9b06798bca090a29. The original commit had sat unpushed on my machine for months. By the time I found it again, I had forgotten that we had decided not to use this change after all, (the relevant test was removed long ago).
2011-01-28util: Fix leak of transfers in upload managerJakob Bornecrantz
2011-01-28mesa: Fix available APIs for AMD_conservative_depthChad Versace
Remove ES2, since AMD_conservative_depth is not listed in the OpenGL ES extension registry.
2011-01-28r300/compiler: print stats based on the initial number of instructionsMarek Olšák
The same number of shaders is now printed regardless of optimizations being enabled or not, so that we can compare shader stats side by side easily.
2011-01-28r300g: fix resource_copy_region for DXT SRGB formatsMarek Olšák
2011-01-28glcpp: Demote "macro redefined" from an error to a warningCarl Worth
The GLSL specification is vague here, (just says "as is standard for C++"), though the C specifications seem quite clear that this should be an error. However, an existing piglit test (CorrectPreprocess11.frag) expects this to be a warning, not an error, so we change this, and document in README the deviation from the specification.
2011-01-27glapi: add @GOTPCREL relocation typeDimitry Andric
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=33440 This replaces commit 731ec60da3ccb92f5bfb4d6f1bc3c8e712751376 NOTE: This is a candidate for the 7.9 and 7.10 branches Signed-off-by: Brian Paul <brianp@vmware.com>
2011-01-28r600g: handle PIPE_CAP_ARRAY_TEXTURESMarek Olšák
2011-01-28r300g: handle PIPE_CAP_ARRAY_TEXTURESMarek Olšák
2011-01-28r300g: 8x8-compressed zbuffer can only be point-sampledMarek Olšák
2011-01-28r300g: fix and re-enable 8x8 zbuffer compression modeMarek Olšák
Also cleanup the whole thing.
2011-01-27r300g: print driver info if RADEON_DEBUG=infoMarek Olšák
2011-01-27r300g: add winsys flag CAN_AACOMPRESSMarek Olšák
2011-01-27r300g: rename flag squaretiling -> drm_2_1_0Marek Olšák
2011-01-27util: fix parsing debug optionsMarek Olšák
So that 'foo' can be found in: OPTION=prefixfoosuffix,foo Also allow that debug options can be separated by a non-alphanumeric characters instead of just commas.
2011-01-27r300g: fix some bugs with zbuffer compression (v4)Marek Olšák
This drops the memblock manager for ZMASK. Instead, only one zbuffer can be compressed at a time. Note that this does not necessarily have to be slower. When there is a large number of zbuffers, compression might be used more often than it was before. It's also easier to debug. How it works: 1) 'clear' turns the compression on. 2) If some other zbuffer is set or the currently-bound zbuffer is used for texturing, the driver decompresses it and then turns the compression off. Notes: - The ZMASK clear has been refactored, so that only one packet3 is used to clear ZMASK. - The 8x8 compression mode is disabled. I couldn't make it work without issues. - Also removed driver-specific stuff from u_blitter. Driver status: - RV530 and R580 appear to just work (finally). - RV570 should work, but there may be an issue that we don't correctly calculate the number of dwords to clear, resulting in a partially uninitialized zbuffer. - RS690 misrenders as if no ZMASK clear happened. No idea what's going on. - RV350 may even hardlock. This issue was already present and this patch doesn't fix it. I think we are still missing some hardware info we need to make the zbuffer compression work fully. Note that there is also an issue with HiZ, resulting in a sort of blocky zigzagged corruption around some objects.
2011-01-26glsl: use 'this' pointer to be consistentBrian Paul
2011-01-26glsl: remove needless conditionalBrian Paul
2011-01-26glsl: move ir_var_out codeBrian Paul
2011-01-26glsl: move ir_var_system_value codeBrian Paul
2011-01-26glsl: use local var to simplify code a bitBrian Paul
2011-01-26mesa: fix compilationZack Rusin
this isn't c++ please don't mix declerations with code
2011-01-26glsl: Refresh autogenerated lexer fileChad Versace
For previous commit.
2011-01-26glsl: Remove extraneously extraneous parensChad Versace
I found this parenthetical usage of parentheses to be extraneously extraneous: (yyextra->ARB_fragment_coord_conventions_enable)
2011-01-26mesa: Allow extensions in MESA_EXTENSION_OVERRIDE to be prefixed with '+'Chad Versace
If an extension is prefixed with '+', attempt to enable it. This introduces symmetry with the prefix '-', which is already allowed.
2011-01-26mesa: Simplify logic in get_extension_override()Chad Versace
* Reduce max indentation level from 7 to 3. * Eliminate counter variables. * Remove function append().
2011-01-26glsl: Enable AMD_conservative_depth in parserChad Versace
All the necessary compiler infrastructure for AMD_conservative_depth is in place, so it's safe to enable it in the parser.
2011-01-26mesa: Propagate gl_FragDepth layout from GLSL IR to Mesa IRChad Versace
2011-01-26glsl: Raise linking error if gl_FragDepth layout is inconsistentChad Versace
From the AMD_conservative_depth spec: If gl_FragDepth is redeclared in any fragment shader in a program, it must be redeclared in all fragment shaders in that program that have static assignments to gl_FragDepth. All redeclarations of gl_FragDepth in all fragment shaders in a single program must have the same set of qualifiers.
2011-01-26glsl: Propagate depth layout qualifier from AST to IRChad Versace
2011-01-26glsl: Define enum ir_depth_layoutChad Versace
2011-01-26glsl: Refresh autogenerated parser filesChad Versace
For commits titled: glcpp: Conditionally define macro GL_AMD_conservative_depth glsl: Add support for AMD_conservative_depth to parser
2011-01-26glsl: Add support for AMD_conservative_depth to parserChad Versace
When AMD_conservative_depth is enabled: * Let 'layout' be a token. * Extend the production rule of layout_qualifier_id to process the tokens: depth_any depth_greater depth_less depth_unchanged
2011-01-26glsl: Add depth layout qualifiers to ast_type_qualifierChad Versace
2011-01-26glcpp: Conditionally define macro GL_AMD_conservative_depthChad Versace
Define macro GL_AMD_conservative_depth to 1 when its extension is enabled.
2011-01-26mesa: Add AMD_conservative_depth to extension listChad Versace
The extension is off by default. First in a patchset that implements support for AMD_conservative_depth in the compiler.
2011-01-26tgsi: add cases for array texturesBrian Paul
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=33555
2011-01-26mesa: Support internalFormat=GL_BGRA for DRI driversKristian Høgsberg
2011-01-26st/egl: Downgrade warning to debug when we can't create a drm screenKristian Høgsberg
We try to load a DRI driver if this fails so don't confuse users.
2011-01-26mesa: fix MESA/EXT typoBrian Paul
Spotted by Bernd Buschinski.
2011-01-26util: require debug options to be separated by commasMarek Olšák
Let's assume there are two options with names such that one is a substring of another. Previously, if we only specified the longer one as a debug option, the shorter one would be considered specified as well (because of strstr). This commit fixes it by checking that each option is surrounded by commas. (a regexp would be nicer, but this is not a performance critical code)