aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe/sp_quad_fs.c
Commit message (Collapse)AuthorAgeFilesLines
* s/Tungsten Graphics/VMware/José Fonseca2014-01-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tungsten Graphics Inc. was acquired by VMware Inc. in 2008. Leaving the old copyright name is creating unnecessary confusion, hence this change. This was the sed script I used: $ cat tg2vmw.sed # Run as: # # git reset --hard HEAD && find include scons src -type f -not -name 'sed*' -print0 | xargs -0 sed -i -f tg2vmw.sed # # Rename copyrights s/Tungsten Gra\(ph\|hp\)ics,\? [iI]nc\.\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./g /Copyright/s/Tungsten Graphics\(,\? [iI]nc\.\)\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./ s/TUNGSTEN GRAPHICS/VMWARE/g # Rename emails s/[email protected]/[email protected]/ s/[email protected]/[email protected]/g s/jrfonseca-at-tungstengraphics-dot-com/jfonseca-at-vmware-dot-com/ s/jrfonseca\[email protected]/[email protected]/g s/keithw\[email protected]/[email protected]/g s/[email protected]/[email protected]/g s/thomas-at-tungstengraphics-dot-com/thellstom-at-vmware-dot-com/ s/[email protected]/[email protected]/ # Remove dead links s@Tungsten Graphics (http://www.tungstengraphics.com)@Tungsten Graphics@g # C string src/gallium/state_trackers/vega/api_misc.c s/"Tungsten Graphics, Inc"/"VMware, Inc"/ Reviewed-by: Brian Paul <[email protected]>
* draw: implement pipeline statistics in the draw moduleZack Rusin2013-04-161-0/+5
| | | | | | | | | | | | | This is a basic implementation of the pipeline statistics in the draw module. The interface is similar to the stream output statistics and also requires that the callers explicitly enable it. Included is the implementation of the interface in llvmpipe and softpipe. Only softpipe enables the pipeline statistics capability though because llvmpipe is lacking gathering of the fragment shading and rasterization statistics. Signed-off-by: Zack Rusin <[email protected]> Reviewed-by: Jose Fonseca <[email protected]>
* softpipe: fix unreliable FS variant binding bugBrian Paul2012-12-191-7/+0
| | | | | | | | | | | | | In exec_prepare() we were comparing pointers to see if the fragment shader variant had changed before calling tgsi_exec_machine_bind_shader(). This didn't work reliably when there was a lot of shader token malloc/ freeing going on because the memory might get reused. Instead, bind the shader variant during regular state validation. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=40404 (fixes a couple of piglit's glsl-max-varyings test) Note: This is a candidate for the stable branches.
* softpipe: consolidate sampler-related arraysBrian Paul2012-08-061-1/+1
| | | | | | | | | | Combine separate arrays for vertex/fragment/geometry samplers, etc into one array indexed by PIPE_SHADER_x. This allows us to collapse separate code for vertex/fragment/geometry state into loops over the shader stage. More to come. Reviewed-by: José Fonseca <[email protected]>
* gallium: Prefix #defines in tgsi_exec.h with TGSI_Tom Stellard2012-01-301-1/+1
|
* gallium: introduce GLSL based interpolation rules. (v2)Dave Airlie2012-01-101-0/+1
| | | | | | | | | | | | This introduces an unspecified interpolation paramter that is only allowed for color semantics, so a specified GLSL interpolation will override the ShadeModel specified interpolation, but not vice-versa. This fixes a lot of the interpolation tests in piglit. v2: rename from unspecified to color Signed-off-by: Dave Airlie <[email protected]>
* softpipe: fix Z interpolation invariance bugBrian Paul2011-10-041-1/+10
| | | | | | | | | We want quad/pixel Z values to be interpolated exactly the same for multi-pass algorithms. Because of how the optimized Z-test code is written, we can't cull the first quad in a run even if it's totally killed. See the comment for more info. NOTE: This is a candidate for the 7.11 branch.
* softpipe: implement fragment shader variantsBrian Paul2011-07-211-5/+5
| | | | We'll need shader variants to accomodate the new polygon stipple utility.
* gallium: implement bounds checking for constant buffersBrian Paul2010-07-291-3/+4
| | | | | | Plumb the constant buffer sizes down into the tgsi interpreter where we can do bounds checking. Optional debug code warns upon out-of-bounds reading. Plus add a few other assertions in the TGSI interpreter.
* softpipe: rename a varBrian Paul2010-06-251-4/+4
|
* softpipe: fix dangling references to shaders in the TGSI executorBrian Paul2010-05-061-19/+5
| | | | | | | | | | | | | | | If a shader was bound to the fragment shader TGSI executor and it was then deleted and a new shader was allocated at the same address as the old shader, the new fragment shader would not get properly bound to the TGSI machine and we'd wind up using the old one. This would not have been a problem if shaders were refcounted. Now the TGSI machine is owned by the context rather than the quad pipeline's shader stage so that the softpipe_delete_fs_state() function can access it. Fixes sporadic failures of the piglit fp-long-alu test (fd.o bug 27989).
* softpipe: comments and whitespace fixesBrian Paul2010-02-181-7/+8
|
* gallium: Rename PIPE_MAX_CONSTANT to PIPE_MAX_CONSTANT_BUFFERS.Michal Krol2010-01-281-1/+1
|
* gallium: Implement 2D constant buffers for fragment shader in softpipe.Michal Krol2010-01-281-3/+4
|
* softpipe: Remove unnecessary headers.Vinson Lee2010-01-201-2/+0
|
* softpipe: setup quad outputs from with fs->runKeith Whitwell2009-07-301-34/+2
|
* softpipe: remove unused variable in shade_quadKeith Whitwell2009-07-301-3/+0
|
* softpipe: move all depth/stencil/alpha pixel processing into one stageKeith Whitwell2009-07-271-17/+29
|
* softpipe: expand quad pipeline to process >1 quad at a timeKeith Whitwell2009-07-241-10/+30
| | | | | | This is part one -- we still only pass a single quad down, but the code can now cope with more. The quads must all be from the same tile.
* gallium: proper constructor and destructor for tgsi_exec_machineKeith Whitwell2009-07-161-13/+17
| | | | | Centralize the creation, initialization and destruction of this struct. Use align_malloc instead of home-brew alternatives.
* softpipe: reformatting, comments, minor clean-upsBrian Paul2009-03-221-11/+10
|
* softpipe: rename sp_headers.h to sp_quad.hBrian2009-02-111-1/+1
| | | | This header describes the quad-related datatypes afterall.
* softpipe: rename sp_quad.[ch] -> sp_quad_pipe.[ch]Brian2009-02-111-1/+1
| | | | Be more consistant with 'draw' module.
* gallium: Remove unused variables.José Fonseca2008-12-301-1/+0
|
* softpipe: fix vertex shader texture samplingBrian Paul2008-12-171-13/+3
| | | | | Need to disable/bypass lambda calculation since derivatives of texcoords are meaningless for adjacent vertices.
* softpipe: Fix function prototype.Michal Krol2008-11-251-1/+1
|
* softpipe: remove old/unneeded dependencies between TGSI exec and softpipeBrian2008-11-231-14/+9
| | | | | Use tgsi_sampler struct as a base class. Softpipe subclasses it and adds the fields it needs.
* softpipe: Split changing fields of quad_header into input, inout and output ↵Michal Krol2008-09-081-11/+11
| | | | parts.
* gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.hBrian Paul2008-08-241-1/+2
| | | | Also, rename p_tile.[ch] to u_tile.[ch]
* gallium: remove unused codeBrian2008-05-101-15/+0
|
* gallium: Remove middle of scope declarations.José Fonseca2008-04-151-2/+3
|
* gallium: enable new quad output code, remove old codeBrian2008-04-141-36/+0
|
* gallium: begin reworking quad stages for multiple color outputsBrian2008-04-071-9/+51
|
* gallium: Fix computation of Z values when not using early Z.Brian2008-03-281-9/+12
| | | | This fixes the missing bitmaps in the engine and fogcoord demos.
* gallium: replace PIPE_ATTRIB_MAX with PIPE_MAX_ATTRIBSBrian2008-03-271-2/+2
| | | | | The later follows the naming scheme of other limits. Keep the old definition until all possible usage is updated.
* gallium: remove DOS carriage returnsBrian2008-03-141-209/+209
|
* gallium: michel's patch to rework texture/sampler binding interfaceKeith Whitwell2008-03-051-208/+209
| | | | | Bind all the samplers/textures at once rather than piecemeal. This is easier for drivers to understand.
* gallium: remove dependencies on pipe_shader_state's semantic infoBrian2008-02-271-1/+1
|
* gallium: added tgsi_shader_field to sp_fragment_shaderBrian2008-02-261-2/+2
| | | | | Use the shader semantic info from there, instead of from pipe_shader_state. Carry this idea to draw module and other drivers...
* gallium: replace some ordinary assignments with pipe_reference_texture()Brian2008-02-201-1/+1
| | | | This fixes at least one instance of dereferencing an invalid texture pointer.
* Merge commit 'origin/gallium-0.1' into gallium-0.1Keith Whitwell2008-02-151-191/+9
| | | | | | | | Conflicts: src/gallium/drivers/softpipe/sp_quad_fs.c src/gallium/drivers/softpipe/sp_state.h src/gallium/drivers/softpipe/sp_state_fs.c
* Code reorganization: update build.José Fonseca2008-02-151-1/+1
| | | | | | | | | Update the Makefiles and includes for the new paths. Note that there hasn't been no separation of the Makefiles yet, and make is jumping all over the place. That will be taken care shortly. But for now, make should work. It was tested with linux and linux-dri. Linux-cell and linux-llvm might require some minor tweaks.
* Code reorganization: move files into their places.José Fonseca2008-02-151-0/+390
This is in a separate commit to ensure renames are properly preserved.