aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom.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]>
* st/mesa: add geometry shader ubo supportDave Airlie2013-10-171-0/+1
| | | | | | | This just adds the missing bits so the ubo tests don't crash. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* mesa: remove _NEW_PACKUNPACKMarek Olšák2013-04-241-5/+1
| | | | | | | | | | No driver checks the flag. Nobody uses it. I also removed the FLUSH_VERTICES calls, because PixelStorei has no effect on rendering. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* st/mesa: optionally apply texture swizzle to border color v2Christoph Bumiller2013-04-181-1/+1
| | | | | | | | | | | | This is the only sane solution for nv50 and nvc0 (really, trust me), but since on other hardware the border colour is tightly coupled with texture state they'd have to undo the swizzle, so I've added a cap. The dependency of update_sampler on the texture updates was introduced to avoid doing the apply_depthmode to the swizzle twice. v2: Moved swizzling helper to u_format.c, extended the CAP to provide more accurate information.
* mesa/st: add ARB_uniform_buffer_object support (v2)Dave Airlie2012-12-081-0/+2
| | | | | | | | | | | | | | | | this adds UBO support to the state tracker, it works with softpipe as-is. It uses UARL + CONST[x][ADDR[0].x] type constructs. v2: don't disable UBOs if geom shaders don't exist (me) rename upload to bind (calim) fix 12 -> 13 comparison as comment (calim + brianp) fix signed->unsigned (Brian) remove assert (Brian) Reviewed-by: Brian Paul <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
* st/mesa: add support for GS textures and samplersBrian Paul2012-08-161-1/+2
|
* st/mesa: atomize vertex array stateMarek Olšák2012-06-151-1/+26
| | | | This moves the state validation to where all the other states are validated.
* st/mesa: fixup NDEBUG vs DEBUG causing debug path to get taken.Dave Airlie2012-02-091-3/+3
| | | | | | | From what I can see we were taking the debug path all the time, when we probably only want it for enable debug path. Signed-off-by: Dave Airlie <[email protected]>
* mesa/st: split updating vertex and fragment shader stages.Dave Airlie2011-05-181-0/+1
| | | | | | | this seems like a logical thing to do and sets the correct st flags for vertex textures. Signed-off-by: Dave Airlie <[email protected]>
* st/mesa: do sanity checks on states only in debug buildsMarek Olšák2011-01-061-0/+4
|
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-1/+1
|
* mesa: initial support for ARB_geometry_shader4Zack Rusin2010-06-281-0/+4
| | | | | | laying down the foundation for everything and implementing most of the stuff. linking, gl_VerticesIn and multidimensional inputs are left.
* mesa/st: adapt to interface changesRoland Scheidegger2010-05-171-0/+1
| | | | | adapt to blit changes, and also handle a bit more msaa state in theory (incomplete, doesn't handle resolves in any way for now).
* st/mesa: Remove unnecessary headers.Vinson Lee2010-03-221-2/+0
|
* st/mesa: Implement st_api.h.Chia-I Wu2010-03-121-3/+2
| | | | | | | | There is currently no user of this new interface. As the inteface can coexist with st_public.h, everthing should work as before. ST_TEXTURE_2D is both defined by st_public.h and st_api.h. Reorder the headers in st/dri to avoid conflicts.
* Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg2010-02-191-5/+5
|
* st/dri2: Use event-driven buffer validation.Francisco Jerez2010-02-161-1/+6
|
* Merge commit 'origin/st-shader-varients'Roland Scheidegger2009-11-261-1/+2
|\ | | | | | | | | | | Conflicts: src/mesa/state_tracker/st_atom_shader.c src/mesa/state_tracker/st_program.c
| * mesa/st: refactor vertex and fragment shader translationKeith Whitwell2009-11-151-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Translate vertex shaders independently of fragment shaders. Previously tried to make fragment shader semantic indexes always start at zero and exclude holes. This was unnecessary but meant that vertex shader translation had to be adjusted to take this into account. Now use a fixed scheme for labelling special FS input semantics (color, etc), and another fixed scheme for the generics. With this, vertex shaders can be translated independently of the bound fragment shader, assuming mesa has done its own job and ensured that the vertex shader provides at least the inputs the fragment shader is looking for. The state-tracker didn't attempt to do anything about this previously, so it shouldn't be needed now.
* | mesa: fix assorted compiler warningsBrian Paul2009-11-171-4/+4
|/
* st: use the static atoms[] array directlyBrian Paul2009-04-211-15/+8
| | | | We can simplify this now that we no longer have any dynamic atoms.
* st: do away with dynamic state atom for const buffersBrian Paul2009-04-211-21/+2
| | | | Just use the new _NEW_PROGRAM_CONSTANTS flag instead.
* mesa: consistantly use mesa memory-functions in gallium state trackerBrian Paul2009-02-121-2/+2
| | | | | Use _mesa_malloc(), _mesa_free(), etc everywhere, not malloc(), free(), etc. Still using CALLOC_STRUCT() at this point.
* mesa: Prefix main includes with dir to avoid conflicts.José Fonseca2008-07-241-2/+2
| | | | | Some of the headers in src/mesa/main have pretty common names which easily conflict with third-party code, e.g. config.h
* gallium: fix some render to texture bugsBrian Paul2008-05-071-1/+2
| | | | | | | | | | | | | | | Before, we were sometimes rendering into a stale texture because st_finalize_texture() would discard the old texture and create a new one. Moved st_update_framebuffer atom after texture validation so that we can create a new renderbuffer surface if the texture changes. Also, split texture validation into two parts: finalize_textures and update_textures. Do finalize_textures first to avoid getting into the situtation where we're doing a pipe->surface_copy() mid-way through state validation. Some debug code still in place, but disabled...
* gallium: don't call st_flush_bitmap_cache() if the only change is ↵Brian2008-03-281-1/+6
| | | | _NEW_PACKUNPACK state
* gallium: implement a glBitmap cacheBrian2008-03-281-0/+3
| | | | | | | The bitmap cache attempts to accumulate a series of glBitmap calls in a buffer to effectively render a whole bunch of bitmaps at once. The cache can be disabled, if needed, by setting UseBitmapCache=GL_FALSE.
* gallium: incorporate alpha state into depth_stencil state object.Keith Whitwell2007-12-171-2/+1
|
* gallium: remove redundant clear_color state.Keith Whitwell2007-12-111-1/+0
|
* No longer need st_update_tnl atomBrian2007-10-311-1/+0
|
* added st_update_pixel_transfer atomBrian2007-10-301-1/+2
|
* Translate mesa vertex/fragment programs to TGSI programs at same time to do ↵Brian2007-09-251-2/+1
| | | | | | | | | | | | | | | | | | proper linking. Previously, programs were translated independently during validation. The problem is the translation to TGSI format, which packs shader input/outputs into continuous slots, depends on which vertex program is being paired with which fragment shader. Now, we look at the outputs of the vertex program in conjunction with the inputs of the fragment shader to be sure the attributes match up correctly. The new 'linked_program_pair' class keeps track of the associations between vertex and fragment shaders. It's also the place where the TGSI tokens are kept since they're no longer per-program state but per-linkage. Still a few loose ends, like implementing some kind of hash/lookup table for linked_program_pairs.
* Make the alpha test state a cso.Zack Rusin2007-09-211-0/+1
|
* converting the setup state to immutable object and renaming it to rasterizer ↵Zack Rusin2007-09-181-1/+1
| | | | state
* Combing depth and stencil objects and making them immutable.Zack Rusin2007-09-181-2/+1
| | | | | Converting depth and stencil objects into a single state object (d3d10 like) and making it immutable.
* add names to tracked state atoms to improve debugkeithw2007-08-251-1/+8
|
* checkpoint in constant tracking reworkKeith Whitwell2007-08-251-12/+39
|
* added tnl state atomBrian2007-08-181-0/+1
|
* plug in texture/sampler state updateBrian2007-08-071-0/+2
|
* Trigger tgsi compilation for fragment programs.Keith Whitwell2007-07-191-0/+1
| | | | Not sure the generated program looks correct though...
* Implement polygon stipple state tracking, application.Brian2007-07-111-0/+1
|
* consolidate point/line state into pipe_setup_stateBrian2007-06-261-1/+0
|
* checkpoint: implement z/depth testingBrian2007-06-201-0/+1
|
* Initial work for glClear(), clear color state.Brian2007-06-201-0/+1
|
* hook up point stateBrian2007-06-191-0/+1
|
* Re-org of surface/framebuffer state.Brian2007-06-191-1/+0
| | | | We should be able to render to any depth/format of X window now.
* just use regular malloc(), free(), memcpy()Brian2007-06-191-3/+3
|
* Added st_update_framebuffer struct/object.Brian2007-06-151-0/+1
|
* Renamed softpipe directories and files to something less confusing.Keith Whitwell2007-06-141-0/+171
softpipe/state_tracker --> state_tracker/ softpipe/ --> pipe/ softpipe/generic --> pipe/softpipe/ I don't think pipe is a great name, but I disliked all the others too. Luckily it's fairly easy to rename with git, so this can be revisited later.