summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_pt.c
AgeCommit message (Collapse)Author
2010-04-28draw: remove extra semicolonsBrian Paul
2010-04-26draw: Always use the llvm middle end when available & enabled.José Fonseca
2010-04-23gallium: Convert some uses of get option to staticJakob Bornecrantz
2010-04-20Merge branch 'gallium-index-bias'José Fonseca
2010-04-19draw llvm: make sure use_llvm isn't used when not definedZack Rusin
2010-04-19draw llvm: allow runtime switching of pipelines (yes/no to llvm)Zack Rusin
use DRAW_USE_LLVM to disable or enable (default) llvm
2010-04-19draw: Implement index bias.José Fonseca
2010-04-11scons: Make LLVM a black-white dependency.José Fonseca
Now that draw depends on llvm it is very difficult to correctly handle broken llvm installations. Either the user requests LLVM and it needs to supply a working installation. Or it doesn't, and it gets no LLVM accelerate pipe drivers.
2010-04-07draw: init draw->pt.middle.general = NULL just to be safeBrian Paul
This field should be null from the initial calloc() of the draw context, but let's be safe (and improve understanding of the code).
2010-04-06gallium/draw: add additional DRAW_LLVM checkBrian Paul
Fixes build breakage.
2010-03-15Merge remote branch 'origin/master' into gallium_draw_llvmZack Rusin
2010-03-09Merge branch 'gallium-vertexelementcso'Roland Scheidegger
Conflicts: src/gallium/auxiliary/cso_cache/cso_context.c src/gallium/auxiliary/util/u_blit.c src/gallium/auxiliary/util/u_gen_mipmap.c src/gallium/drivers/i915/i915_context.h src/gallium/drivers/i965/brw_draw_upload.c src/gallium/drivers/r300/r300_blit.c src/gallium/drivers/r300/r300_context.h src/gallium/drivers/r300/r300_render.c src/gallium/drivers/r300/r300_state_derived.c src/mesa/state_tracker/st_cb_bitmap.c src/mesa/state_tracker/st_cb_clear.c
2010-02-22gallium/draw: initial code to properly support llvm in the draw moduleZack Rusin
code generate big chunks of the vertex pipeline in order to speed up software vertex processing.
2010-02-22gallium: Remove bypass_vs_clip_and_viewport from rasteriser state.Michal Krol
Needs testing.
2010-02-17gallium: remove redundant nr_components field from pipe_vertex_elementRoland Scheidegger
This is a property of the associated src_format pipe format. Hence use util_format_get_nr_components to query this when necessary instead.
2010-02-14draw: Use util_format_name().José Fonseca
2010-01-22Merge branch 'mesa_7_7_branch'Brian Paul
Conflicts: src/gallium/auxiliary/draw/draw_context.c src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c src/gallium/auxiliary/pipebuffer/Makefile src/gallium/auxiliary/pipebuffer/SConscript src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/gallium/auxiliary/tgsi/tgsi_scan.c src/gallium/drivers/i915/i915_surface.c src/gallium/drivers/i915/i915_texture.c src/gallium/drivers/llvmpipe/lp_setup.c src/gallium/drivers/llvmpipe/lp_tex_sample_c.c src/gallium/drivers/llvmpipe/lp_texture.c src/gallium/drivers/softpipe/sp_prim_vbuf.c src/gallium/state_trackers/xorg/xorg_dri2.c src/gallium/winsys/drm/intel/gem/intel_drm_api.c src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c src/gallium/winsys/drm/radeon/core/radeon_drm.c src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c src/mesa/state_tracker/st_cb_clear.c
2010-01-21draw: Remove unnecessary headers.Vinson Lee
2009-12-30draw: Implement draw_arrays() in terms of draw_arrays_instanced().Michal Krol
2009-12-29Implement draw_arrays_instanced() in softpipe.Michal Krol
Modify the translate module to respect instance divisors and accept instance id as a parameter to calculate input vertex offset.
2009-12-14gallium: more work for edgeflags changesRoland Scheidegger
fixes, cleanups, etc. not working yet
2009-12-09gallium: first steps to treat edgeflags as regular vertex elementKeith Whitwell
The idea here is to eliminate the set_edgeflags() call in pipe_context by treating edgeflags as a regular vertex element. Edgeflags provoke special treatment in hardware, which means we need to label them in some way, in this case we'll be passing them through the vertex shader and labelling the vertex shader output with a new TGSI semantic (TGSI_SEMANTIC_EDGEFLAG).
2009-11-20draw: Initialize variable in draw_pt.c.Vinson Lee
2009-06-19draw: use u_reduced_prim() functionBrian Paul
2009-03-13gallium: consolidate bypass_vs and bypass_clipping flagsKeith Whitwell
The draw module provides a similar interface to the driver which is retained as various bits of hardware may be able to take on incremental parts of the vertex pipeline. However, there's no need to advertise all this complexity to the state tracker. There are basically two modes now - normal and passthrough/screen-coords.
2009-01-27gallium: standardize on stride instead of pitch in the interfaceZack Rusin
2008-11-12draw: Add missing include.Michal Krol
2008-11-06gallium: debug code to print vertex array data (disabled)Brian Paul
2008-11-05gallium: added some debug code (disabled)Brian Paul
2008-10-07draw: add switch for drivers to force vertex data passthroughKeith Whitwell
2008-08-24gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.hBrian Paul
Also, rename p_tile.[ch] to u_tile.[ch]
2008-07-04gallium: fix trim() function bug when count < firstBrian Paul
If the user called glDrawArrays(GL_TRIANGLES, count=1), trim() returned a very large integer because of the unsigned arithmetic.
2008-06-10gallium: Deprecate GETENV. Replace by debug_get_bool_option.José Fonseca
debug_get_bool_option will interpret "n", "no", "0", "f", or "false" as FALSE; and everything else as TRUE. The default value (used when the variable is not set) is received as a parameter.
2008-05-30draw: trim incoming primitivesKeith Whitwell
2008-05-29draw: add more switches to turn FSE on/offKeith Whitwell
2008-05-28draw: enable FSE by defaultKeith Whitwell
2008-05-23draw: get rid of fetch-shade-emit frontend hackKeith Whitwell
The code is now living in it's intended place as a pt middle end.
2008-05-12draw: turn fse path into a middle endKeith Whitwell
Also add some util functions in pt_util.c
2008-05-12draw: streamline the varray pathKeith Whitwell
- drop support for running the pipeline (ie. don't populate the flags values) - pass through all split-able primitives intact to the middle end - only primitives that can't be split are shunted on the draw-element path
2008-05-12draw: add fetch-shade-emit pathKeith Whitwell
Enable with TEST_FSE=t. Performs fetch from API-provided vertex buffers, transformation with one of three (two working) hard-coded shaders, and final emit to hardware vertices all in a single pass. Currently only really useful for profiling in conjunction with SP_NO_RAST=t.
2008-05-08split larger primitives in the simple varray ptZack Rusin
2008-04-25draw: no need to special-case elts/get_elts for varray frontendKeith Whitwell
2008-04-25frontend for rendering without eltsZack Rusin
2008-04-22draw: allow drivers to query pipeline state more easilyKeith Whitwell
Also, provide a separate flag to say whether the driver can handle clipping/rhw tasks, in addition to the API flag which indicates they have already been done.
2008-04-19draw: move incoming vertex state into draw->ptKeith Whitwell
This state is effectively private to the vertex processing part of the draw module.
2008-04-19draw: move some pipeline-specific code & state to draw_pipe.[ch]Keith Whitwell
2008-04-19draw: remove named clipmask flags, tidy up pt middle endsKeith Whitwell
2008-04-18draw: remove draw_prim.cKeith Whitwell
2008-04-18draw: switch over to draw_pt paths, will remove old code shortlyKeith Whitwell
2008-04-18draw: remove fetch_pipeline middle end -- just use the general pathKeith Whitwell