summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-06-21Make the main compiler call the preprocessor.Kenneth Graunke
By using a single function, the main compiler doesn't need to include glcpp.h, which currently has a lot of details about the preprocessor internals. In particular, this prevents the two yacc grammars from seeing each other, which would be rather messy to sort out.
2010-06-21Complain and exit if the given shader file doesn't exist.Kenneth Graunke
2010-06-21glcpp: Add support for lexing from a string.Kenneth Graunke
The standalone binary still reads from stdin, however.
2010-06-21glcpp: Output to a buffer and error log rather than directly printing.Kenneth Graunke
In the standalone case, simply print the buffers when done.
2010-06-21glcpp: Fix a case of == where = probably ought to be.Kenneth Graunke
Caught by a GCC warning.
2010-06-21Add glcpp to the build.Kenneth Graunke
2010-06-21Specify %option prefix="glcpp_" in the source code, not the Makefile.Kenneth Graunke
2010-06-21Merge Carl's preprocessor into the glcpp subdirectory.Kenneth Graunke
2010-06-21llvmpipe: s/lpfs/shader/José Fonseca
2010-06-21r300g: fix the KIL opcode for r3xx-r4xx (v4)Marek Olšák
2010-06-20r300g: fix assigning the texture cache region for 1 textureMarek Olšák
2010-06-20mapi: Add missing stdlib.h header for malloc declaration.Vinson Lee
2010-06-20i965g: Fix setup of immediate types for gen4 disasm.Vinson Lee
Caught by clang. Follow-up to commit 070bbd4fcd5d2b669b880b91730a7ad9d130e416.
2010-06-20r300g: manually assign texture cache regionsMarek Olšák
This should fix corrupted texturing on r3xx-r4xx.
2010-06-20r600g: handle DRM_API_HANDLE_TYPE_KMS in buffer_get_handleMarek Olšák
2010-06-20r300g: cleanup buffer_{from, get}_handleMarek Olšák
2010-06-20r300g: cleanup includesMarek Olšák
2010-06-20r300g: texture alignment code cleanup + use special alignment for AA texturesMarek Olšák
2010-06-19Revert "Fix image_matches_texture_obj() MaxLevel check"Will Dyson
This reverts commit a9ee95651131e27d5acf3d10909b5b7e5c8d3e92. It was based on a failure to understand how ther driver allocates memory, and causes a regression with Celestia. Set MaxLevel to dstLevel before allocating new mipmap level. The radeon driver will fail to allocate space for a new level that is outside of BaseLevel..MaxLevel. Set MaxLevel before allocating. Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
2010-06-19Print out the info log if compilation fails.Kenneth Graunke
2010-06-19Change error/warning functions to print to the info log.Kenneth Graunke
2010-06-19Initialize the shader info logIan Romanick
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
2010-06-19Make shader a talloc context.Kenneth Graunke
2010-06-19Link against talloc. We're going to be using it.Kenneth Graunke
2010-06-19r300g: fix random pixels appearing / incomplete renderingMarek Olšák
This should fix the FDO bug #28612. Also, these piglit tests have been fixed: - fbo-copypix - scissor-copypixels - copytexsubimage - texredefine Finally, 2 flushes in the transfer path are no longer needed.
2010-06-19r300g: output floats instead of halfs when passed through translateMarek Olšák
2010-06-19Fix crash when running glsl on a signle fragment shader.Kenneth Graunke
2010-06-19Rename prog to shader. Less confusing.Kenneth Graunke
2010-06-19Fix compile on 64-bit.Kenneth Graunke
2010-06-19r300g: fix clamp and mirror_clamp wrap modes when used with nearest filteringMarek Olšák
2010-06-19r300g: more informative warning in END_CSMarek Olšák
2010-06-19r300g: improve the ZTOP conditionMarek Olšák
The real difference here is that ZTOP is now enabled if all stencil ops are set to KEEP. This improves performance.
2010-06-19r300g: fix up the CS size of the rasterizer stateMarek Olšák
2010-06-18Ensure that shader_in and shader_out are correctly set in declarationsIan Romanick
2010-06-18glsl_lexer: centroid and invariant are not reserved words in GLSL 1.10Ian Romanick
2010-06-18glsl_lexer: Handle interpolation qualifiersIan Romanick
2010-06-18intel: Finalize the miptree before mapping it for fallbacks.Eric Anholt
Fixes segfault in mipmap_view.c demo. Bug #27212.
2010-06-18i965: Fix the name of aa_coverage_slope in the improved AA line params.Eric Anholt
2010-06-18graw: add two examples using new register filesZack Rusin
2010-06-18gallium: add a temporary array register fileZack Rusin
like normal temporaries, but allows to define a number of distinct arrays, all of which make it explicit that they contain /indexable/ registers. as a side-effect we're adding support for multi-dimensional destination registers. The whole thing looks like this: DCL TEMPX[0][0..128] # 0 array with 128 registers ADD TEMPX[0][0], IN[0], IMM[0] ADD TEMPX[0][1], IN[0], IMM[0] ABS OUT[0], TEMPX[0][TEMP[0]]
2010-06-18gallium: add a new register file - immediate arrayZack Rusin
allows one to specify a safe (bound checked) array filled with immediates. it works just like a const array and declares much like our current immediates.
2010-06-18llvmpipe: Fix pointer dereference after free.José Fonseca
2010-06-18llvmpipe: limit the number of fragment shader variants kept aroundRoland Scheidegger
llvmpipe can create a large number of shader variants for a single shader (which are quite big), and they were only ever deleted if the shader itself was deleted. This is especially apparent in things like glean blendFunc where a new variant is created for every different subtest, chewing up all memory. This change limits the numbers of fragment shader variants (for all shaders) which are kept around to a fixed number. If that would be exceeded a fixed portion of the cached variants is deleted (since without tracking the used variants this involves flushing we don't want to delete only one). Always the least recently used variants (from all shaders together) are deleted. For now this is all per-context. Both the number of how many variants are cached (1024) as well as how many will be deleted at once (1/4 of the cache size) are just rough guesses and subject to further optimization.
2010-06-17linker: Add some function header commentsIan Romanick
2010-06-17TODO: Add note about initializers for constantsIan Romanick
2010-06-17Allow initializers for uniformsIan Romanick
2010-06-17Don't link shaders by defaultIan Romanick
Add a command line option to trigger linking. This "fixes" all the failing test cases. Oops.
2010-06-18r300g: fix hardlocks in occlusion queriesMarek Olšák
Early Z test (=ZTOP) must be disabled before a query is started, otherwise the GPU is dead. The order of emitted registers matters more than you might think. This fixes hardlocks in sauerbraten.
2010-06-18r300g: debug option for fake occlusion queriesMarek Olšák
2010-06-17linker: Initial bits of the linkerIan Romanick
No linking is done yet, but some of the semantic checking is done.