aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
Commit message (Collapse)AuthorAgeFilesLines
* tgsi: get texturing working in vertex shader sse2 pathKeith Whitwell2009-07-201-0/+4
| | | | Missing file from previous commit.
* tgsi: get texturing working in vertex shader sse2 pathKeith Whitwell2009-07-201-6/+6
|
* tgsi: fix regression in indexed const lookupsKeith Whitwell2009-07-201-2/+4
| | | | | | | | | | | This function was calling get_input_base() and get_output_base() to get the names of a couple of register to use as temps. Those functions no longer return registers, so adjust it to get the registers elsewhere. This change doesn't address the issue that it's a fairly poor way to grab a register name by calling a function with an apparently unrelated meaning.
* draw: fix ppc build regressionKeith Whitwell2009-07-161-0/+1
| | | | Found by x.org tinderbox, reported by Chris Ball.
* tgsi: simplify and fix sse KIL implementationKeith Whitwell2009-07-161-36/+28
| | | | | | Use sse_movmskps to extract the correct bits of the comparison result for use in updating the killmask. Simplify some logic around identifying the set of necessary comparisons to make.
* rtasm: export sse_movmskpsKeith Whitwell2009-07-162-0/+10
|
* tgsi: initial texturing support on sse pathKeith Whitwell2009-07-161-19/+183
| | | | | Most obvious problem is drawpixels comes out blocky, but this may be an existing issue of KIL on the sse path.
* tgsi: make sse function callout mechanism more genericKeith Whitwell2009-07-161-40/+48
| | | | Take a list of arguments rather than hardcoding TEMP_R0.
* tgsi: reduce x86 reg usage in tgsi_sse generated programsKeith Whitwell2009-07-163-132/+110
| | | | | | Pass the tgsi_exec_machine struct in directly and just hold a single pointer to this struct, rather than keeping one for each of its internal members.
* tgsi: no need to separately malloc input and output arraysKeith Whitwell2009-07-162-27/+6
| | | | Can now guarantee alignment in the initial allocation of the tgsi exec machine.
* gallium: reduce recursive include of tgsi_exec.hKeith Whitwell2009-07-165-1/+7
| | | | A lot of draw code no longer needs to see this header.
* tgsi: make function call code in tgsi_sse.c less opaqueKeith Whitwell2009-07-162-25/+92
| | | | | | Explictly pass src and dst arguments (previously dst argument was also being used as a src). Separate argument handling from the rest of the function call emit.
* gallium: proper constructor and destructor for tgsi_exec_machineKeith Whitwell2009-07-166-40/+54
| | | | | Centralize the creation, initialization and destruction of this struct. Use align_malloc instead of home-brew alternatives.
* Merge branch 'mesa_7_5_branch'Brian Paul2009-07-137-17/+117
|\
| * tgsi: update some assertionsBrian Paul2009-07-101-4/+4
| |
| * tgsi: tgsi: add semantic_names[] string for TGSI_SEMANTIC_FACEBrian Paul2009-07-101-1/+6
| | | | | | | | Same story as in the tgsi_dump.c code (see prev commit).
| * tgsi: add semantic_names[] string for TGSI_SEMANTIC_FACEBrian Paul2009-07-101-1/+6
| | | | | | | | | | | | | | | | Fixes TGSI dump output when front/back-face register is declared. Also, add some assertions to make sure the semantic/interpolate string arrays have as many elements as there are tokens in the p_shader_tokens.h file. That should catch problems like this in the future.
| * tgis: implement indirect addressing for destination registersBrian Paul2009-07-106-11/+101
| | | | | | | | Includes the TGSI interpreter, but not the SSE/PPC/etc code generators.
* | Merge branch 'mesa_7_5_branch'Jakob Bornecrantz2009-07-041-1/+27
|\|
| * gallium: Fixes for clobbering stencil values in combined depth/stencil textures.Michel Dänzer2009-07-071-1/+27
| | | | | | | | | | Also fix one case where a 32 bit depth value was incorrectly converted to a combined depth/stencil value.
* | gallium: rearrange some members to avoid memory holes/paddingZack Rusin2009-07-061-2/+2
| | | | | | | | plus it saves us a cacheline in the cso
* | pipebuffer: handle possible null pointer dereferenceZack Rusin2009-07-062-0/+4
| | | | | | | | reported by clang static analyzer
* | cso: possible null pointer dereferenceZack Rusin2009-07-061-0/+4
| | | | | | | | reported by clang static analyzer
* | util: fix possible null pointer usageZack Rusin2009-07-064-11/+46
| | | | | | | | found by the clang static analyzer
* | Merge branch 'mesa_7_5_branch'Jakob Bornecrantz2009-07-031-4/+2
|\| | | | | | | | | | | Conflicts: src/mesa/main/dlist.c src/mesa/vbo/vbo_save_api.c
| * util: Increase OutputDebugStringA to 4k.José Fonseca2009-07-011-4/+2
| | | | | | | | | | | | | | According to http://unixwiz.net/techtips/outputdebugstring.html that's how big the buffer is. The 512bytes limitation is in kernel mode.
* | Nuke old trace-drm integration.Corbin Simpson2009-07-021-165/+0
| | | | | | | | AFAICT nobody will miss it.
* | Merge branch 'mesa_7_5_branch'Brian Paul2009-06-301-1/+3
|\| | | | | | | | | | | Conflicts: src/mesa/vbo/vbo_exec_draw.c
| * util: Set PIPE_BUFFER_USAGE_FLUSH_EXPLICIT when calling ↵José Fonseca2009-06-301-1/+3
| | | | | | | | buffer_flush_mapped_range.
* | gallium/draw: sketch out some missing pointcoord codeBrian Paul2009-06-291-1/+11
| | | | | | | | | | | | The gl_PointCoord attribute is currently expected to be in the fog coord register's z/w components. This was never totally fleshed out though. This is just some placeholder code.
* | Merge branch 'mesa_7_5_branch'Jakob Bornecrantz2009-06-141-1/+1
|\|
| * tgsi: correct handling of return value from util_vsnprintfKeith Whitwell2009-06-261-5/+13
| | | | | | | | | | | | | | We were failing to deal with: - vsnprintf returns negative value on error. - vsnprintf returns the number of chars that *would* have been written on truncation.
| * aux/indices: don't use 'prim' value once it is known to be badKeith Whitwell2009-06-261-1/+1
| | | | | | | | Theoretical bugfix only - no known case where this might happen.
* | tgsi: correct handling of return value from util_vsnprintfKeith Whitwell2009-06-261-5/+13
| | | | | | | | | | | | | | We were failing to deal with: - vsnprintf returns negative value on error. - vsnprintf returns the number of chars that *would* have been written on truncation.
* | Merge branch 'mesa_7_5_branch'Brian Paul2009-06-2414-86/+93
|\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/i915/i915_tex_layout.c src/mesa/drivers/dri/i965/brw_wm_glsl.c src/mesa/drivers/dri/intel/intel_buffer_objects.c src/mesa/drivers/dri/intel/intel_pixel_bitmap.c src/mesa/drivers/dri/intel/intel_pixel_draw.c src/mesa/main/enums.c src/mesa/main/texstate.c src/mesa/vbo/vbo_exec_array.c
| * util: Add cast.José Fonseca2009-06-181-1/+1
| | | | | | | | It is expected to loose precision here.
| * draw: Replace pointer arithmetic with cast.José Fonseca2009-06-181-1/+2
| | | | | | | | | | | | | | Using uintptr_t as intermediate type for pointer -> integer conversions is easier to understand and does not cause any size mismatch warnings. uintptr_t is part of C99, and we already provide a suitable replacement definition for all platforms we care about.
| * pipebuffer: Use a type consistently for sizes/offsets.José Fonseca2009-06-1812-84/+90
| | | | | | | | | | | | | | Avoids warnings on 64bit builds. Use regular unsigned since that's what gallium expects, but use a typedef to facilitate possible changes in the future.
* | draw: use u_reduced_prim() functionBrian Paul2009-06-194-28/+4
| |
* | gallium/util: s/boolean/unsigned/Brian Paul2009-06-191-1/+1
| |
* | Merge branch 'ext-provoking-vertex'Brian Paul2009-06-195-59/+150
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: docs/relnotes-7.6.html progs/tests/Makefile src/gallium/drivers/softpipe/sp_prim_vbuf.c src/glx/x11/indirect.c src/mesa/glapi/Makefile src/mesa/glapi/dispatch.h src/mesa/glapi/glapioffsets.h src/mesa/glapi/glapitable.h src/mesa/glapi/glapitemp.h src/mesa/glapi/glprocs.h src/mesa/main/dlist.c src/mesa/main/enums.c src/mesa/sparc/glapi_sparc.S src/mesa/x86-64/glapi_x86-64.S src/mesa/x86/glapi_x86.S
| * | draw: use flatfirst variableBrian Paul2009-06-181-1/+1
| | |
| * | draw: remove debug codeBrian Paul2009-06-181-7/+0
| | |
| * | draw: fix first provoking vertex mode for quads, quad strips and polygonsBrian Paul2009-06-181-18/+55
| | |
| * | draw: fix first provoking vertex mode for unfilled quadsBrian Paul2009-06-181-10/+24
| | |
| * | draw: clean up indentationBrian Paul2009-06-181-11/+11
| | |
| * | draw: implement flatshade_first for drawing pipelineBrian Paul2009-06-092-20/+67
| | |
* | | Merge branch 'mesa_7_5_branch'Brian Paul2009-06-161-3/+3
|\ \ \ | | |/ | |/| | | | | | | | | | Conflicts: src/mesa/main/api_validate.c
| * | rtasm: Use 32bit constant.José Fonseca2009-06-151-3/+3
| | | | | | | | | | | | As we're only using 32bit bitmasks.
* | | Merge branch 'mesa_7_5_branch'José Fonseca2009-06-111-1/+1
|\| | | | | | | | | | | | | | | | | Conflicts: src/mesa/state_tracker/st_cb_fbo.c src/mesa/state_tracker/st_framebuffer.c