summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-10-27mesa: Remove unnecessary glapitable.h includes.glapi-reorgChia-I Wu6-9/+5
With 07b85457d95bcc70588584e9380c51cd63aa3a2b, glapitable.h is included by core mesa only to know the size of _glapi_table. It is not necessary as the same info is given by _gloffset_COUNT. This change makes _glapi_table opaque to core mesa. All operations on it are supposed to go through one of the SET/GET/CALL macros.
2010-10-27vbo: Use CALL_* macros.Chia-I Wu1-8/+8
Use macros to access _glapi_table consistently. There is no functional change.
2010-10-27glapi: Merge glapioffsets.h into glapidispath.h.Chia-I Wu7-5109/+3786
Move defines in glapioffsets.h to glapidispatch.h. Rename _gloffset_FIRST_DYNAMIC to _gloffset_COUNT, which is equal to the number of entries in _glapi_table. Consistently use SET_by_offset, GET_by_offset, CALL_by_offset, and _gloffset_* to recursively define all SET/GET/CALL macros.
2010-10-27glapi: Do not use glapioffsets.h.Chia-I Wu10-3124/+3110
glapioffsets.h exists for the same reason as glapidispatch.h does. It is of no use to glapi. This commit also drops the use of glapioffsets.h in glx as glx is considered an extension to glapi when it comes to defining public GL entries.
2010-10-27glapi: Move glapidispatch.h to core mesa.Chia-I Wu5-8/+8
It is a core mesa header, not a glapi header.
2010-10-27glapi: Do not use glapidispatch.h.Chia-I Wu7-54/+40
glapidispatch.h exists so that core mesa (libmesa.a) can be built for DRI drivers or for non-DRI drivers as a compile time decision (whether IN_DRI_DRIVER is defined). It is of no use to glapi. This commit also drops the use of glapidispatch.h in glx and libgl-xlib as they are considered extensions to glapi when it comes to defining public GL entries.
2010-10-26mesa: remove the unused _mesa_is_fragment_shader_active() functionBrian Paul1-12/+0
This reverts commit 013d5ffeec3af5665c81c6a7a8370d21699ca609.
2010-10-26mesa: call _mesa_valid_to_render() in glDrawPixels, glCopyPixels, glBitmapBrian Paul1-61/+15
This lets us simplify and consolidate some state checking code. This implements the GL_INVALID_OPERATION check for all drawing commands required by GL_EXT_texture_integer.
2010-10-26mesa: do integer FB / shader validation check in _mesa_valid_to_render()Brian Paul1-1/+11
2010-10-26i965: Disable register spilling on gen6 until it's fixed.Eric Anholt1-1/+1
Avoids GPU hang on glsl-fs-convolution-1.
2010-10-26i965: Fix VS URB entry sizing.Eric Anholt1-1/+1
I'm trying to clamp to a minimum of 1 URB row, not a maximum of 1. Fixes: glsl-kwin-blur glsl-max-varying glsl-routing
2010-10-26i965: Drop the eot argument to read messages, which can never be set.Eric Anholt1-24/+19
2010-10-26i965: Add support for constant buffer loads on gen6.Eric Anholt1-2/+26
Fixes glsl-fs-uniform-array-5.
2010-10-26i965: Set up the constant buffer on gen6 when it's needed.Eric Anholt1-0/+1
This was slightly confused because gen6_wm_constants does the push constant buffer, while brw_wm_constants does pull constants.
2010-10-26i965: Fix typo in comment about state flags.Eric Anholt1-1/+1
2010-10-26i965: Handle new ir_unop_round_even in channel expression splitting.Eric Anholt1-0/+1
2010-10-26i965: Add support for discard instructions on gen6.Eric Anholt1-10/+41
It's a little more painful than before because we don't have the handy mask register any more, and have to make do with cooking up a value out of the flag register.
2010-10-26i965: Add disasm for the flag register.Eric Anholt1-0/+3
2010-10-26i965: Clear some undefined fields of g0 when using them for gen6 FB writes.Eric Anholt1-0/+14
This doesn't appear to help any testcases I'm looking at, but it looks like it's required.
2010-10-26i965: Use SENDC on the first render target write on gen6.Eric Anholt3-4/+13
This is apparently required, as the thread will be initiated while it still has dependencies, and this is what waits for those to be resolved before writing color.
2010-10-26i965: Clarify an XXX comment in FB writes with real info.Eric Anholt1-1/+2
2010-10-26i965: Add EU code for dword scattered reads (constant buffer array indexing).Eric Anholt2-0/+45
2010-10-26egl_dri2: Fix a typo that make glFlush be called at wrong time.Chia-I Wu1-1/+1
We want to call glFlush when there is a current context. That is, old_ctx. This is a regression introduced by d19afc57fe49816f3f3290410e0124d326577be2.
2010-10-26r600g: add assembler support for all the kcache fields.Dave Airlie3-2/+17
2010-10-25mesa: additional teximage error checks for GL_EXT_texture_integerBrian Paul1-4/+38
2010-10-25mesa: additional switch cases for GL_EXT_texture_integerBrian Paul1-2/+87
2010-10-25mesa: additional glReadPixels error checks for GL_EXT_texture_integerBrian Paul1-0/+15
2010-10-26r600g: fix magic 0x1 ->flat shade enaDave Airlie2-2/+2
2010-10-25glsl: Fix constant component count in vector constructor emitting.Kenneth Graunke1-1/+1
Fixes freedesktop.org bug #31101 as well as piglit test cases assignment-type-mismatch.vert and constructor-28.vert.
2010-10-25glsl: Fix ast-to-hir for ARB_fragment_coord_conventionsChad Versace1-1/+1
Function ast_declarator_list::hir(), when processing keywords added by extension ARB_fragment_coord_conventions, made the mistake of checking only if the extension was __supported by the driver__. The correct behavior is to check if the extensi0n is __enabled in the parse state__. NOTE: this is a candidate for the 7.9 branch. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2010-10-25translate: remove unused prototypesBrian Paul1-9/+0
2010-10-25translate: use function typedefs, casts to silence warningsBrian Paul2-27/+35
2010-10-25st/mesa: support RGBA16 and use it for RGBA12 as wellMarek Olšák1-1/+10
Tested with r300g. Signed-off-by: Marek Olšák <maraeo@gmail.com>
2010-10-25rtasm: use pointer_to_func() to silence warningBrian Paul1-1/+1
2010-10-25util: use pointer_to_func() to silence warningBrian Paul1-1/+2
2010-10-25xlib: silence unused var warningBrian Paul1-0/+1
2010-10-25mesa: fix uninitialized var warningBrian Paul1-0/+1
http://bugs.freedesktop.org/show_bug.cgi?id=31067
2010-10-25mesa: silence enum comparison warningBrian Paul1-1/+1
http://bugs.freedesktop.org/show_bug.cgi?id=31069
2010-10-24r300g: fix texture border for 16-bits-per-channel formatsMarek Olšák1-4/+9
This is kinda hacky, but it's hard to come up with a generic solution for all formats when only a few are used in practice (I mostly get B8G8R8*8).
2010-10-24mesa: allow FBO attachments of formats LUMINANCE, LUMINANCE_ALPHA, and INTENSITYMarek Olšák1-0/+3
As per the GL_ARB_framebuffer_object specification. Signed-off-by: Marek Olšák <maraeo@gmail.com>
2010-10-24Ensure -L$(TOP)/$(LIB_DIR) appears in link line before any -L in $LDFLAGSJon TURNEY2-8/+10
Ensure -L$(TOP)/$(LIB_DIR) (the staging dir for build products), appears in the link line before any -L in $LDFLAGS, so that we link driver we are building with libEGL we have just built, and not an installed version [olv: make a similar change to targets/egl] Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2010-10-24r600g: drop more common state handling codeDave Airlie4-151/+80
2010-10-24r600g: Also clear bc data when we're destroying a shader.Tilman Sauerbeck3-1/+39
[airlied: remove unused vars] Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-10-24r600g: Added r600_pipe_shader_destroy().Tilman Sauerbeck3-2/+16
Not yet complete. Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-10-24r600g: merge more of the common r600/evergreen state handlingDave Airlie4-172/+106
2010-10-24r600g: Fixed r600_vertex_element leak.Tilman Sauerbeck4-18/+10
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-10-23softpipe: remove >32bpp color restrictionBrian Paul2-8/+1
The comment was out of date. The tile cache does handle >32-bit colors.
2010-10-23st/mesa: be smarter choosing texture format for glDrawPixels()Brian Paul1-4/+46
This lets us get an integer texture format for integer pixel formats.
2010-10-23mesa: display list support for GL_EXT_texture_integerBrian Paul1-0/+144
2010-10-23mesa: plug in GL_EXT_texture_integer functionsBrian Paul1-0/+7