summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Add core.h.Chia-I Wu2010-08-243-47/+81
| | | | | | | | core.h is the public header of core mesa. GLX, WGL, and GLSL are supposed to include this header file. It should be noted that headers included by core.h must not perform feature tests (#if FEATURE_xxx). Otherwise, we cannot, for example, mix a FEATURE_ES2 libmesagallium.a with a FEATURE_GL libglsl.a.
* intel: Add support for MAX_SAMPLES=1 EXT_framebuffer_multisample.Eric Anholt2010-08-232-1/+5
| | | | | The spec specifically sets the minimum MAX_SAMPLES at 1 to allow exposing the extension on all implementations, so do so.
* radeon: print chip family for evergreen in renderer stringAlex Deucher2010-08-232-2/+5
|
* mesa: Add new ir_unop_any() expression operation.Eric Anholt2010-08-231-0/+20
| | | | | | | The previous any() implementation would generate arg0.x || arg0.y || arg0.z. Having an expression operation for this makes it easy for the backend to generate something easier (DPn + SNE for 915 FS, .any predication on 965 VS)
* ir_to_mesa: Implement f2b by comparing the arg to 0, not the result.Eric Anholt2010-08-231-1/+1
| | | | Fixes: glsl-fs-any
* glsl2: Include imports.h to get snprintf wrapper for MSVCIan Romanick2010-08-231-0/+6
| | | | Signed-off-by: José Fonseca <[email protected]>
* mesa: Fix msvc build of glsl.Aras Pranckevicius2010-08-231-2/+7
| | | | Signed-off-by: José Fonseca <[email protected]>
* ir_to_mesa: Fix constant array handling to return the temp we created.Eric Anholt2010-08-231-0/+1
| | | | | | | | | | | We ended up returning CONST[loc] rather than TEMP[loc2]. Things would *usually* end up working out OK, since the constants often ended up getting allocated to CONST[loc..loc+columns] with no swizzle. But for the case where the contigous temporary copy of the swizzled constant vec4 args was actually needed, we'd end up reading some other constant values, possibly including ones not actually allocated. Fixes: glsl-varying-mat3x2.
* mesa: Don't add 1 to GL_ACTIVE_UNIFORM_MAX_LENGTH.Eric Anholt2010-08-231-2/+0
| | | | Fixes: glsl-getactiveuniform-length.
* mesa: Assorted fixes for es_generator.py on win32.Chia-I Wu2010-08-231-0/+6
| | | | | Fix mixed use of GL_APIENTRY and GLAPIENTRY. Parameter list of a function prototype should never be empty.
* i965: Add sandybridge D0 pci idsZhenyu Wang2010-08-231-1/+3
| | | | Signed-off-by: Zhenyu Wang <[email protected]>
* st/mesa: implement depth-only blit for BlitFramebufferMarek Olšák2010-08-221-2/+7
| | | | Signed-off-by: Brian Paul <[email protected]>
* st/mesa: fix BlitFramebuffer for D24S8 texturesMarek Olšák2010-08-221-21/+17
| | | | | | | | | This is the same issue as in the previous patch, but here the Blit is not implemented for separate depth and stencil buffers at all (such a configuration is not supported in Gallium) and the code incorrectly treated a D24S8 texture as two separate buffers, making this Blit a no-op. Signed-off-by: Brian Paul <[email protected]>
* st/mesa: added st_is_depth_stencil_combined() functionBrian Paul2010-08-222-0/+29
| | | | This code is part of a patch by Marek Olšák.
* st/mesa: fix ReadPixels crashes when reading depth/stencil from a FBOBrian Paul2010-08-221-0/+7
| | | | | | This is based on a patch from Marek Olšák. NOTE: This is a candidate for the Mesa 7.8 branch.
* mesa: use driver hook for creating new renderbuffersBrian Paul2010-08-221-2/+2
|
* st/mesa: clean-up pipe_get_transfer() callsBrian Paul2010-08-221-12/+12
|
* i965: Fix 8-wide FB writes on gen6.Eric Anholt2010-08-221-12/+5
| | | | | | My merge of Zhenyu's patch on top of my previous patches broke it by my code expecting simd16 single write and Zhenyu's simd8 path being disabled by mine. Merge the two for success.
* i965: Fix brw_math1 with scalar argument in gen6 FS.Eric Anholt2010-08-221-2/+14
| | | | | | | | | | | | | The docs claim two conflicting things: One, that a scalar source is supported. Two, source hstride must be 1 and width must be exec size. So splat a constant argument out into a full reg to operate on, since violating the second set of constraints is clearly failing. The alternative here might be to do a 1-wide exec on a constant argument for math1. It would probably save cycles too. But I'll leave that for the glsl2-965 branch. Fixes glsl-algebraic-div-one-2.shader_test.
* i965: Fix up WM push constant setup on gen6.Eric Anholt2010-08-225-26/+57
| | | | Fixes glsl-algebraic-add-add-1.
* i965: Use intel->gen >= 6 instead of IS_GEN6.Eric Anholt2010-08-223-5/+5
|
* mesa: Initialize member variables in ir_to_mesa_src_reg constructor.Vinson Lee2010-08-221-0/+4
| | | | The default constructor did not initialize some member variables.
* mesa: Initialize variables in mesa_src_reg_from_ir_src_reg.Vinson Lee2010-08-211-0/+2
|
* mesa: Removed another unused variable.José Fonseca2010-08-221-1/+0
|
* mesa: Remove unsused local variable.José Fonseca2010-08-211-1/+0
|
* evergreen : initial support driver code.richard2010-08-2041-249/+12426
|
* i965: Rename nr_depth_regs to nr_payload_regs.Eric Anholt2010-08-205-8/+8
| | | | | | | Only 8 out of the up to 13 regs are for source/dest depth, so the name wasn't particularly appropriate. Note that this doesn't count the constant or URB payload regs. Also, don't pre-divide by 2, so it's actually a number of registers.
* i965: Also use the SIMD8 FB writes for SIMD8 mode on non-SNB.Eric Anholt2010-08-203-17/+18
|
* i965: Add support for FB writes on Sandybridge.Zhenyu Wang2010-08-202-12/+74
|
* i965: Set the destination horiz stride even for da16, as SNB seems to need it.Zhenyu Wang2010-08-202-2/+6
|
* i965: Set the maximum number of threads on Sandybridge.Zhenyu Wang2010-08-201-1/+5
|
* i965: Add AccWrCtl support on Sandybridge.Zhenyu Wang2010-08-205-2/+20
| | | | Whenever the accumulator results are needed, this bit must be set.
* i965: Mention the mlen and rlen for URB reads.Zhenyu Wang2010-08-201-0/+5
|
* i965: Sandybridge doesn't have Compr4 mode, since it's not needed any more.Zhenyu Wang2010-08-201-1/+2
|
* i965: Adjust disasm of subreg numbers to be in units of the register type.Zhenyu Wang2010-08-201-6/+20
| | | | | This makes reading the code easier when matching up to the specs, which also use this format.
* i965: Fix DP write channel ordering on Sandybridge.Eric Anholt2010-08-201-2/+25
| | | | | The SIMD16 message no longer has the goofy interleaved format that made Compr4 compression necessary before.
* Delete more vestiges of the old shader compiler.Kenneth Graunke2010-08-202-45/+0
|
* glsl: Remove bogus "ambient" field from vec4 gl_TextureEnvColor.Kenneth Graunke2010-08-201-1/+1
|
* glsl: add missing ambient field to gl_LightModelLuca Barbieri2010-08-201-1/+1
| | | | | Again, this is a one-element struct that was incorrectly missing the field.
* glsl: don't crash if a field is specified for a non-struct uniformLuca Barbieri2010-08-201-1/+1
| | | | | This was triggered by the previous bug, but is a separate problem in the general sense.
* glsl: add missing sceneColor field to gl_{Front, Back}LightModelProductLuca Barbieri2010-08-201-2/+2
| | | | | | | According to both GLSL 1.20 and 4.0, these are a struct with one field called "sceneColor". Fixes a crash on loading in FlightGear.
* intel: Don't try to do work for BufferSubData with a size of 0.Eric Anholt2010-08-201-0/+6
| | | | | | | If we hit the linear blit path, we'd come up with a pitch of 0, then divide by zero. Fixes vbo-subdata-zero, made for bug #28931 (warsow).
* mesa: Fix GetUniformLocation while compiling display lists.Nick Bowler2010-08-201-1/+9
| | | | | | | | | | | | This function was apparently missing from the display list dispatch table, causing the generic no-op function to be called instead. To make matters worse, the no-op function is indistinguishable from a successful call to GetUniformLocation. GL specifies that GetUniformLocation is executed immediately when compiling display lists. Fixes fdo bug 29622. Signed-off-by: Nick Bowler <[email protected]>
* Remove remnants of the old glsl compiler.Eric Anholt2010-08-2052-28903/+0
|
* mesa: Add missing ES sources to SConscript.Chia-I Wu2010-08-201-0/+3
| | | | | | These sources compile to nothing when FEATURE_ES is not defined and thus were overlooked. Note that api_exec_es[12].c are still missing on the list. They should be added when they can be generated on the fly.
* mesa: Decorate functions with GL_APIENTRY in es_generator.py.Chia-I Wu2010-08-201-2/+2
| | | | Note that GLES headers use GL_APIENTRY, not GLAPIENTRY.
* mesa: Include compiler.h for ASSERT.Chia-I Wu2010-08-207-0/+14
| | | | | mfeatures.h defines ASSERT_NO_FEATURE to ASSERT, which is defined in compiler.h. Header files using the macro should include compiler.h.
* st/mesa: fix code/declaration mixingKeith Whitwell2010-08-201-3/+2
|
* mesa/st: use PIPE_TEXTURE_RECT for GL_TEXTURE_RECTANGLELuca Barbieri2010-08-202-3/+5
|
* mesa/st: support using PIPE_TEXTURE_RECT internallyLuca Barbieri2010-08-205-43/+32
| | | | | | | | | | Currently Gallium internals always use PIPE_TEXTURE_2D and normalized coordinates to access textures. However, PIPE_TEXTURE_2D is not always supported for NPOT textures, and PIPE_TEXTURE_RECT requires unnormalized coordinates. Hence, this change adds support for both kinds of normalization.