summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gallium: Remove unnecessary header from p_format.h.Vinson Lee2010-08-271-2/+0
| | | | Remove p_compiler.h.
* graw: Include missing header in graw.h.Vinson Lee2010-08-271-0/+1
| | | | Include p_compiler.h for PUBLIC symbol.
* r300g: Include missing header in r300_texture.h.Vinson Lee2010-08-271-0/+1
| | | | Include p_compiler.h for uint32_t and boolean symbols.
* Fix typo in function name "shading_laguage_version".Kenneth Graunke2010-08-261-2/+2
|
* Revert "r600g: simplify states"Dave Airlie2010-08-2715-8277/+1720
| | | | | | | | | This reverts commit bd25e23bf3740f59ce8859848c715daeb9e9821f. Apart from introducing a lot of hex magic numbers and being highly impenetable code, it causes lots of lockups on an average piglit run that always runs without lockups. Always run piglit before/after doing big things like this.
* r600g: add initial if/else/endif supportDave Airlie2010-08-274-12/+170
| | | | | | | | | this adds handling for some more CF instructions and conditions also adds parameter for stack size emission These seem to pass on VS with the stack size hack but not on FS, TODO: fix FS + stack size calcs
* r600g: optimise op2 and swapped op2 emission.Dave Airlie2010-08-271-48/+37
| | | | | | this makes op2 emission smaller, since it skips instructions that don't write to the dst. not sure if this could have unwanted side effects but try it and see.
* r600g: add exp support in theory.Dave Airlie2010-08-271-1/+105
| | | | though it isn't passing the test, and this instruction is pure bonghits.
* r600g: add DPH support.Dave Airlie2010-08-271-1/+8
|
* i965: Add preliminary support for uniforms to the new FS backend.Eric Anholt2010-08-261-8/+55
| | | | +269 piglits
* i965: Abort on gl_FragDepth in the new FS backend for now.Eric Anholt2010-08-261-0/+1
| | | | | It hangs the GPU due to FB_WRITE handling being incomplete. There are bigger issues to handle first.
* i965: Fix up and actually enable the NewShader and NewShaderProgram hooks.Eric Anholt2010-08-262-3/+8
|
* i965: Hack in avoidance of c++ reserved keyword in libdrm.Eric Anholt2010-08-261-0/+8
| | | | | I'm also fixing this upstream in libdrm, but this avoids new libdrm dependency for the moment.
* i965: Add GLSL IR-level source annotation and comments to new FS debug.Eric Anholt2010-08-261-5/+83
| | | | | This should make debugging way easier, as now we have context for reading large programs.
* i965: Use the implied move in brw_math() in the new FS.Eric Anholt2010-08-261-2/+1
|
* i965: Add support for in varyings to the new FS codegen.Eric Anholt2010-08-261-55/+390
| | | | At least some tests, like glsl-vs-sign, now work.
* i965: Start building the codegen visitor.Eric Anholt2010-08-261-10/+659
| | | | This can successfully emit a real program that generates magenta now.
* i965: Start building direct GLSL2 IR to 965 assembly codegen.Eric Anholt2010-08-264-17/+381
| | | | | | | | | | | Our channel-expressions and vector-splitting changes now happen into a private copy of the IR that we maintain for ourselves. Uniform assignment still happens by the core, so we continue using Mesa IR generation not just for swrast fallbacks but also for uniform values (since there's no storage for their contents other than shader_program->FragmentProgram->Parameters->ParameterValues). And most importantly, at the moment no actual codegen is hooked up other than emitting our favorite color to the framebuffer.
* i965: Add new pass to split vectors into scalar variablesEric Anholt2010-08-264-1/+393
| | | | | | | Combined with the previous pass, this lets other optimization passes do their work thanks to ir_tree_grafting. Still have regression in instruction count with INTEL_NEW_FS, but register count is even better.
* i965: Add a pass for the FS to reduce vector expressions down to scalar.Eric Anholt2010-08-264-1/+384
| | | | | | | | | | | | | | | This is a step towards implementing a GLSL IR backend for the 965 fragment shader. Because it has downsides with the current codegen, it is hidden under the environment variable INTEL_NEW_FS. This results in an increase in instruction count at the moment (1444 -> 1752 for glsl-fs-raytrace, 345 -> 359 on my demo), because dot products are turned into a series of multiplies and adds instead of a custom expansion of MULs and MACs, and by not splitting the variable types up we don't get tree grafting and thus there are extra moves of temporary storage. However, register count drops for the non-GLSL path (64 -> 56 on my demo shader) because the register allocator sees all the sub-operations.
* i965: Start building 965 FS backend.Eric Anholt2010-08-268-11/+135
|
* llvmpipe: fix PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS queryBrian Paul2010-08-261-1/+8
| | | | | Fixes crashes in glean glsl1 and demos/src/glsl/vert-tex. See comments for details.
* graw: Add copyright headers to the interfaces.José Fonseca2010-08-261-0/+27
|
* ir_to_mesa: Don't assume that an ir_dereference_array is of a variable.Eric Anholt2010-08-261-1/+2
| | | | | | | | Fixes: glsl-array-bounds-02 (software) glsl-array-bounds-04 glsl-array-bounds-06 (software) glsl-array-bounds-08
* glsl: Add a quick hack to constant folding to reduce duplicated work.Eric Anholt2010-08-261-0/+13
| | | | Reduces runtime of glsl-max-varyings 92% on my system.
* st/mesa: Remove unnecessary header.Vinson Lee2010-08-261-1/+0
|
* scons: Fix inverted logic.José Fonseca2010-08-261-1/+1
|
* docs: update news.html with 7.8.2 release infoBrian Paul2010-08-261-0/+8
|
* docs: remove links to tungstengraphics.com, and misc updatesBrian Paul2010-08-264-29/+18
|
* docs: remove link to old memory.html pageBrian Paul2010-08-261-1/+0
|
* scons: Add glsl_symbol_table.cppJosé Fonseca2010-08-261-0/+1
|
* i965: Add support for destination RelAddr writes in the VS.Eric Anholt2010-08-262-13/+48
| | | | Fixes: glsl-vs-varying-array
* i965: Fix the test for variable indexing of shader inputs.Eric Anholt2010-08-261-5/+11
| | | | | | Shader inputs appear in source registers, not dst registers. Catches unsupported shaders in glsl-fs-varying-array and Humus RaytracedShadows.
* glsl2: Remove a couple FINISHME comments that have already been resolvedIan Romanick2010-08-261-7/+1
|
* glsl: Move built-ins to live beyond the global scope.Kenneth Graunke2010-08-261-4/+20
| | | | | | | | | | Per the GLSL 1.20 specification (presumably a clarification of 1.10). Also, when creating user functions, make a new ir_function that shadows the built-in ir_function, rather than adding new signatures. User functions are supposed to hide built-ins, not overload them. Fixes piglit tests redeclaration-{04, 12, 14}.vert.
* glsl: Move is_built_in flag from ir_function_signature to ir_function.Kenneth Graunke2010-08-268-18/+13
| | | | | | Also rename it to "is_builtin" for consistency. Signed-off-by: Ian Romanick <[email protected]>
* glsl: Refactor variable declaration handling.Kenneth Graunke2010-08-261-36/+41
| | | | | | | | | | | | | Moving the check for an earlier variable declaration helps cleanly separate out the re-declaration vs. new declaration code a bit. With that in place, conflicts between variable names and structure types or function names aren't caught by the earlier "redeclaration" error message, so check the return type on glsl_symbol_table::add_variable and issue an error there. If one occurs, don't emit the initializer. Fixes redeclaration-01.vert and redeclaration-09.vert. Signed-off-by: Ian Romanick <[email protected]>
* glsl: Don't add overloads to existing structure constructors.Kenneth Graunke2010-08-263-4/+9
| | | | | | Instead, make a new ir_function and try to add it to the symbol table. Fixes piglit test redeclaration-08.vert.
* glsl: Remove name_declared_this_scope check when adding functions.Kenneth Graunke2010-08-261-9/+8
| | | | | | Instead, rely on the symbol table's rules. Fixes redeclaration-02.vert.
* glsl: Use a single shared namespace in the symbol table.Kenneth Graunke2010-08-2611-576/+686
| | | | | | | | | | | | As of 1.20, variable names, function names, and structure type names all share a single namespace, and should conflict with one another in the same scope, or hide each other in nested scopes. However, in 1.10, variables and functions can share the same name in the same scope. Structure types, however, conflict with/hide both. Fixes piglit tests redeclaration-06.vert, redeclaration-11.vert, redeclaration-19.vert, and struct-05.vert.
* st/mesa: add missing packed depth/stencil formats in st_format_datatype()Brian Paul2010-08-261-1/+3
| | | | Fixes llvmpipe regression from one of the prev commits.
* mesa: fix mixed-up function call nameBrian Paul2010-08-261-2/+2
|
* mesa: Identify packed depth/stencil buffers using the Format field.Nick Bowler2010-08-263-2/+21
| | | | | | | | | | | | | | | | | | | | Intel sometimes uses packed depth/stencil buffers even when only a depth buffer or only a stencil buffer was requested. Common code currently uses the _BaseFormat field to determine whether a depth/stencil wrapper is necessary. But unless the user explicitly requested a packed depth/stencil buffer, the _BaseFormat field does not encode this information, and the required wrappers are not created. The problem was introduced by commit 45e76d2665b38b ("mesa: remove a bunch of gl_renderbuffer fields"), which killed off the _ActualFormat field upon which the decision to create a wrapper used to be made. This patch changes the logic to use the Format field instead, which is more like the old code. Fixes fdo bug 27590. Signed-off-by: Nick Bowler <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* intel: Merge identical cases in switch statement.Nick Bowler2010-08-261-11/+5
| | | | | Signed-off-by: Nick Bowler <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* r600: fix vertex buffer size calculationAndre Maasikas2010-08-262-12/+2
| | | | | | | when we dont know max_index we cannot calculate vb size from count anymore - just use the bo size. Also added an assert to remind that we dont handle GL_INT GL_DOUBLE upload when we dont' know max_index - will fix later
* graw: Undo late loading of graw drivers.José Fonseca2010-08-2616-163/+227
| | | | | | | | | | Keith prefers a clean separation between graw applications and implementations, where apps do not link libgallium.a but instead get all functionality they need via graw interface. Although this is not incompatible with late loading of graw drivers, it it would make it very hard to maintain, as wrappers for every utility symbol exposed in graw would have to be written or generated somehow.
* st/mesa: Fix glEGLImageTargetTexture2DOES.Chia-I Wu2010-08-262-1/+10
| | | | | | | stObj->pt should be set in st_bind_surface, just as in st_TexImage. On the other hand, st_TexImage should unreference stObj->pt. It also needs to initialize the texture image again as _mesa_clear_texture_object clears the image.
* st/egl: Add support for EGL_MESA_image_drm.Chia-I Wu2010-08-264-0/+260
|
* st/egl: Add support for EGL_KHR_surfaceless_*.Chia-I Wu2010-08-262-9/+16
|
* st/mesa: Add support for surfaceless current contexts.Chia-I Wu2010-08-261-4/+27
| | | | | A surfaceless current context is a context that is made current without draw and read framebuffers. Such contexts can only render to FBOs.