summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* i965: Start building 965 FS backend.Eric Anholt2010-08-268-11/+135
|
* 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
* st/mesa: Remove unnecessary header.Vinson Lee2010-08-261-1/+0
|
* 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.
* 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
* 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/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.
* mesa: Disable the debug spam for x86 CPU detection with a compile-time flag.Eric Anholt2010-08-251-7/+13
| | | | | I don't know of any problems with CPU detection in years. Don't spam the user that was just looking to enable assertions with this stuff.
* mesa: Move the x86 detection debug messages next to the detection.Eric Anholt2010-08-252-33/+39
|
* mesa: Don't warn when the desired result of s3tc lib available occurs.Eric Anholt2010-08-251-1/+0
|
* r600: Remove unnecessary headers.Vinson Lee2010-08-255-8/+0
|
* r300: Remove unnecessary header.Vinson Lee2010-08-251-1/+0
|
* Revert "mesa: Don't add 1 to GL_ACTIVE_UNIFORM_MAX_LENGTH."Eric Anholt2010-08-251-0/+2
| | | | | | | | | | This reverts commit 001a7bfdfc8b3c8930d5ced21982dbdfb8cd35b3. I hadn't found the section of the spec clarifying that the old behavior was right. Reverting fixes the new version of the testcase, and the Humus demos that could no longer find their uniforms. Bug #29782 Bug #29783
* i965: Fix detection of implicit MOVs to message regs in brw_optimize.c.Eric Anholt2010-08-251-24/+38
| | | | | | | Texcoords in AmbientApertureLighting were getting trashed since the move of math arguments to implied moves, due to the logic for detecting ALU message reg writes overriding the logic for SEND implicit message reg writes.
* mesa: Remove now-unused _mesa_add_sampler().Eric Anholt2010-08-252-41/+0
| | | | | | We do the generation of "what sampler number within Parameters are we" right in ir_to_mesa.cpp, instead of repeatedly walking the existing list to find out.
* ir_to_mesa: Add support for samplers in structures.Eric Anholt2010-08-251-109/+122
| | | | | | | Fixes: glsl-fs-uniform-sampler-struct glsl-fs-sampler-numbering-3 Bug #29690
* mesa: Remove now-unused _mesa_add_uniform.Eric Anholt2010-08-252-35/+0
| | | | | We had to inline it to avoid doing a double-lookup in the process of adding assertion checks.
* ir_to_mesa: Convert this code to using linker.cpp's uniform locations.Eric Anholt2010-08-252-127/+77
| | | | Fixes: glsl-fs-uniform-array-4.
* mesa: Remove the "Used" flag in gl_program_parameter.Eric Anholt2010-08-253-33/+1
| | | | | | This was in place for uniform handling, but nothing actually needs the value now, since presence in a parameter list indicates that the uniform was used as far as the linker was concerned.
* r300/compiler: emulate relative addressing with negative offsets in VSMarek Olšák2010-08-251-0/+74
| | | | 3 more piglits, cool.
* st/mesa: Remove unnecessary header.Vinson Lee2010-08-251-1/+0
|
* glsl/mesa: fixes for MSVCAras Pranckevicius2010-08-251-0/+1
| | | | Signed-off-by: Brian Paul <[email protected]>
* intel: Support EGL_MESA_image_drmKristian Høgsberg2010-08-253-0/+87
|
* intel: Take an intel_screen pointer in intel_alloc_region_* functionsKristian Høgsberg2010-08-256-37/+32
|
* gallium: Use draw_set_index_buffer and others.Chia-I Wu2010-08-251-20/+26
| | | | | | Update all drivers to use draw_set_index_buffer, draw_set_mapped_index_buffer, and draw_vbo. Remove draw_set_mapped_element_buffer and draw_set_mapped_element_buffer_range.
* i965: Remove unnecessary header.Vinson Lee2010-08-251-1/+0
|
* r600: Include missing header in evergreen_fragprog.c.Vinson Lee2010-08-251-0/+1
| | | | | | | | | Include r600_emit.h for r600EmitShader and r600EmitShaderConsts symbols. Fixes the following GCC warnings. evergreen_fragprog.c: In function 'evergreenSetupFragmentProgram': evergreen_fragprog.c:521: warning: implicit declaration of function 'r600EmitShader' evergreen_fragprog.c:778: warning: implicit declaration of function 'r600EmitShaderConsts'
* r600: Include missing header in evergreen_vertprog.c.Vinson Lee2010-08-251-0/+1
| | | | | | | | Include r600_emit.h for r600EmitShader and r600EmitShaderConsts symbols. Fixes the following GCC warnings. evergreen_vertprog.c:614: warning: implicit declaration of function 'r600EmitShader' evergreen_vertprog.c:701: warning: implicit declaration of function 'r600EmitShaderConsts'
* r300/compiler: Silence uninitialized variable warning.Vinson Lee2010-08-241-5/+11
| | | | | | | | | | | | The variable loops would be used uninitialized if it ever processed a RC_OPCODE_ENDLOOP case first. This patch initalizes the loops variable to NULL and adds an assert at the RC_OPCODE_ENDLOOP case that loops isn't NULL. Silence the following GCC warning. r3xx_vertprog.c: In function 'translate_vertex_program': r3xx_vertprog.c:469: warning: 'loops' may be used uninitialized in this function
* r300g: Add missing comma in SConscript.Vinson Lee2010-08-241-1/+1
| | | | | | | This is a follow-on patch to commit 574ba4b5f50bfe661427327cd792a8a200559376. Fixes r300g SCons build.
* r600: Include missing header in evergreen_render.c.Vinson Lee2010-08-241-0/+1
| | | | | | Fixes the following GCC warning. evergreen_render.c: In function 'evergreenTryDrawPrims': evergreen_render.c:836: error: implicit declaration of function 'evergreenSetupFragmentProgram'
* r600: Remove unused variable.Vinson Lee2010-08-241-1/+0
| | | | | | Silences the following GCC warning. evergreen_state.c: In function 'evergreenSetBlendState': evergreen_state.c:341: warning: unused variable 'id'
* i965: Fix printf format warnings on 32-bit builds.Vinson Lee2010-08-241-4/+4
|
* r600: Remove unused variable.Vinson Lee2010-08-241-1/+0
| | | | | | Fixes the following GCC warning. r600_emit.c In function 'r600AllocShaderConsts': r600_emit.c:59: warning: unused variable 'out'
* r600: Remove spaces between backslash and newline.Vinson Lee2010-08-241-2/+2
| | | | | | Fixes the following GCC warnings. r600_cmdbuf.h:201: warning: backslash and newline separated by space r600_cmdbuf.h:202: warning: backslash and newline separated by space
* r300/compiler: implement elimination of unused constantsMarek Olšák2010-08-258-1/+189
| | | | | Wine likes to create a *lot* of constants, exceeding the size of the constant file in hw.
* r300/compiler: terminate vertex shader compilation immediately after an errorMarek Olšák2010-08-251-36/+56
| | | | Also rename "compiler" to "c".
* r300/compiler: fail to compile if we hit hw limits or an unimplemented featureMarek Olšák2010-08-253-0/+62
| | | | | i.e. relative addressing (mainly FS), saturate modifiers, exceeding the maximum number of constants.
* r300/compiler: handle indexable temporaries correctly in deadcode eliminationMarek Olšák2010-08-251-1/+30
|
* r300/compiler: disable register allocation for indexable temporaries in VSMarek Olšák2010-08-251-5/+25
| | | | | | | If there is relative addressing of temporaries, we cannot change register indices, so skip register allocation entirely. To utilize register allocation at least partially, we need separate indexable and non-indexable register files in both TGSI and Mesa IR.
* ir_to_mesa: set IndirectRegisterFilesMarek Olšák2010-08-251-0/+8
| | | | | | | This fixes relative addressing of temporaries (and maybe others) in all gallium drivers. Acked on irc by Eric Anholt.
* glsl: Set up uniform initializers by walking the shaders after linking.Eric Anholt2010-08-243-122/+181
| | | | | | | | | | | | | Previously, uniform initializers were handled by ir_to_mesa as it made its Parameters list. However, uniform values are global to all shaders, and the value set in one Parameters list wasn't propagated to the other gl_program->Parameters lists. By going back through the general Mesa uniform handling, we make sure that all gl_programs get updated values, and also successfully separate uniform initializer handling from ir_to_mesa gl_program generation. Fixes: glsl-uniform-initializer-5.
* make: Use C++ compiler to link stdc++ library.Brian Paul2010-08-241-2/+3
| | | | | glxinfo and glxgears run on swrast and softpipe without undefined symbol errors.
* prog_execute: Implement OPCODE_TXLIan Romanick2010-08-241-0/+16
| | | | Fixes bugzilla #29628
* mesa: added isblank() for MSVCBrian Paul2010-08-241-0/+1
|