summaryrefslogtreecommitdiff
path: root/src/mesa
AgeCommit message (Collapse)AuthorFilesLines
2010-08-20evergreen : initial support driver code.richard41-249/+12426
2010-08-20i965: Rename nr_depth_regs to nr_payload_regs.Eric Anholt5-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.
2010-08-20i965: Also use the SIMD8 FB writes for SIMD8 mode on non-SNB.Eric Anholt3-17/+18
2010-08-20i965: Add support for FB writes on Sandybridge.Zhenyu Wang2-12/+74
2010-08-20i965: Set the destination horiz stride even for da16, as SNB seems to need it.Zhenyu Wang2-2/+6
2010-08-20i965: Set the maximum number of threads on Sandybridge.Zhenyu Wang1-1/+5
2010-08-20i965: Add AccWrCtl support on Sandybridge.Zhenyu Wang5-2/+20
Whenever the accumulator results are needed, this bit must be set.
2010-08-20i965: Mention the mlen and rlen for URB reads.Zhenyu Wang1-0/+5
2010-08-20i965: Sandybridge doesn't have Compr4 mode, since it's not needed any more.Zhenyu Wang1-1/+2
2010-08-20i965: Adjust disasm of subreg numbers to be in units of the register type.Zhenyu Wang1-6/+20
This makes reading the code easier when matching up to the specs, which also use this format.
2010-08-20i965: Fix DP write channel ordering on Sandybridge.Eric Anholt1-2/+25
The SIMD16 message no longer has the goofy interleaved format that made Compr4 compression necessary before.
2010-08-20Delete more vestiges of the old shader compiler.Kenneth Graunke2-45/+0
2010-08-20glsl: Remove bogus "ambient" field from vec4 gl_TextureEnvColor.Kenneth Graunke1-1/+1
2010-08-20glsl: add missing ambient field to gl_LightModelLuca Barbieri1-1/+1
Again, this is a one-element struct that was incorrectly missing the field.
2010-08-20glsl: don't crash if a field is specified for a non-struct uniformLuca Barbieri1-1/+1
This was triggered by the previous bug, but is a separate problem in the general sense.
2010-08-20glsl: add missing sceneColor field to gl_{Front, Back}LightModelProductLuca Barbieri1-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.
2010-08-20intel: Don't try to do work for BufferSubData with a size of 0.Eric Anholt1-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).
2010-08-20mesa: Fix GetUniformLocation while compiling display lists.Nick Bowler1-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 <nbowler@draconx.ca>
2010-08-20Remove remnants of the old glsl compiler.Eric Anholt52-28903/+0
2010-08-20mesa: Add missing ES sources to SConscript.Chia-I Wu1-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.
2010-08-20mesa: Decorate functions with GL_APIENTRY in es_generator.py.Chia-I Wu1-2/+2
Note that GLES headers use GL_APIENTRY, not GLAPIENTRY.
2010-08-20mesa: Include compiler.h for ASSERT.Chia-I Wu7-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.
2010-08-20st/mesa: fix code/declaration mixingKeith Whitwell1-3/+2
2010-08-20mesa/st: use PIPE_TEXTURE_RECT for GL_TEXTURE_RECTANGLELuca Barbieri2-3/+5
2010-08-20mesa/st: support using PIPE_TEXTURE_RECT internallyLuca Barbieri5-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.
2010-08-20gallium: make all checks for PIPE_TEXTURE_2D check for PIPE_TEXTURE_RECT tooLuca Barbieri1-1/+1
Searched for them with: git grep -E '[!=]=.*PIPE_TEXTURE_2D|PIPE_TEXTURE_2D.*[!=]=|case.*PIPE_TEXTURE_2D' Behavior hasn't been changed.
2010-08-20i965: Fix compile warnings on 64-bit Linux.Kenneth Graunke1-4/+4
format ‘%d’ expects type ‘int’, but argument 2 has type ‘long int’
2010-08-19mesa: Silence uninitialized variable warnings in dummy_enum_func.Vinson Lee1-10/+10
2010-08-19i915: Remove unnecessary header from i830_context.c.Vinson Lee1-1/+0
2010-08-18i965: Set the if stack pop count when breaking out of a loop inside an if.Eric Anholt1-5/+11
Otherwise, we might end up with the if stack pointing at the wrong place. Fixes GPU hang with glsl-vs-if-loop.
2010-08-18i965: Don't set the swizzle on an immediate value in the VS.Eric Anholt2-4/+11
Fixes glsl-vs-if-nested (70.0 is not <= 70.000648 thanks to the swizzle bits getting set). Some safety checks are added to make sure this doesn't happen again as we increase the usage of immediate values in program generation.
2010-08-18mesa: Fix the whining for link failures to actually be under MESA_GLSL=dump.Eric Anholt1-0/+5
2010-08-18mesa: Remove unnecessary heaaders from shaderapi.c.Vinson Lee1-2/+0
2010-08-18mesa: Don't try to free components of a NULL uniform list.Eric Anholt1-0/+4
This might happen if we manage to trigger the right linker errors.
2010-08-18ir_to_mesa: Fix leak by improper freeing of a uniform list.Eric Anholt1-1/+1
2010-08-18glsl2: Free the shader compiler at dri screen destruction.Eric Anholt1-0/+2
Hooray, we can valgrind again without adding suppressions. This also adds an interface for use by an implementation of glReleaseShaderCompiler().
2010-08-18ir_to_mesa: Don't leak the whole linked assembly program.Eric Anholt1-0/+1
2010-08-18dri2: Clean up the common dri2 options at screen destroy.Eric Anholt2-3/+8
2010-08-18mesa: fpclassify is available on OpenSolaris.Vinson Lee1-1/+2
There is no explicit predefined macro to distinguish between OpenSolaris and Solaris. This patch assumes that the difference is in the compilers. OpenSolaris uses GCC and not the Sun Studio compiler. Assume that the availability of fpclassify is due to GCC. This patch was not tested on Solaris. It would break the build on Solaris with GCC if GCC on Solaris does not have fpclassify.
2010-08-18ir_to_mesa: Fix leak of set_branchtargets temp data.Eric Anholt1-4/+2
2010-08-18ir_to_mesa: Stop leaking the ir_instruction * annotation of our compile.Eric Anholt1-2/+1
2010-08-18mesa: Free linked shaders when deleting the shader program.Eric Anholt1-0/+6
2010-08-18mesa: Free old linked shaders when relinking new shaders.Eric Anholt1-1/+1
2010-08-18ir_to_mesa: Free the ir_to_mesa temporary storage when we're done.Eric Anholt1-2/+2
2010-08-18mesa: Hang the compiled shader off the shader->ir, not the shader.Eric Anholt1-1/+2
Otherwise, with repeated program recompile, we never free the results of the previous compile.
2010-08-18mesa: Make MESA_GLSL=dump include when compile/link fails, and the info log.Eric Anholt1-5/+20
2010-08-18r600: implement SSG instructionAndre Maasikas2-0/+67
2010-08-18r600: implement DP2 opcodeAndre Maasikas1-2/+10
2010-08-17ir_to_mesa: Allow ir_return in main().Eric Anholt1-2/+2
I didn't expect that this would really work, but it turns out there are shaders in the wild that do it. Fixes: (with swrast) glsl-fs-main-return glsl-vs-main-return
2010-08-17i965: Throw a link error when we see a "return" in main().Eric Anholt1-0/+8
We'll need to use the HALT instruction to do this right, like returns from other functions.