summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker
AgeCommit message (Collapse)Author
2007-10-31No longer need st_update_tnl atomBrian
2007-10-31Use ffvertex_prog.c code instead of t_vp_build.c code.Brian
2007-10-31Lift VBO/tnl stuff up out of driversBrian
2007-10-31plug st_invalidate_state() into ctx->Driver.UpdateStateBrian
Start lifting Mesa stuff up out of winsys/driver code.
2007-10-30Implement shader concatenation for glBitmap.Brian
2007-10-30combine shaders for glCopyPixelsBrian
2007-10-30Use program serial numbers to avoid re-generating fragment programs for ↵Brian
glDrawPixels.
2007-10-30Before calling texformat->StoreImage() set _ImageTransferState=0 since we'll ↵Brian
do pixel transfer in the fragment program.
2007-10-30color matrixBrian
2007-10-30start using program cacheBrian
2007-10-30added pixel_transfer_cacheBrian
2007-10-30tgsi_translate_mesa_program: Don't crash when program->Parameters == NULL.Michel Dänzer
2007-10-30Disable debug code.Brian
Basic code for PixelTranslfer ops and glDrawPixels works now. A pixel transfer program is generated and combined with the current fragment shader.
2007-10-30Remove obsolete filesBrian
2007-10-30Rename file since it's now a state atomBrian
2007-10-30checkpoint: combine pixel transfer and user shader for glDrawPixelsBrian
2007-10-30make st_upload_constants() publicBrian
2007-10-30added pixel_transfer_program fieldBrian
2007-10-30added st_update_pixel_transfer atomBrian
2007-10-30bug fixes, implement state atom for pixel transferBrian
2007-10-30Set _NEW_BUFFERS in glRead/DrawBuffer().Brian
Previously, we set _NEW_PIXEL and _NEW_COLOR in these functions, respectively. That correponds to the GL attribute groups, but doesn't make much sense otherwise. This could improve validation efficiency in a few places too. It looks like all the drivers are already checking for _NEW_BUFFERS in the right places (since that's the bit for FBO state) so we can trim out _NEW_PIXEL and _NEW_COLOR at any time.
2007-10-30comment unused 'cb' fieldBrian
2007-10-30update comments, fix typoBrian
2007-10-30Initial version of st_get_pixel_transfer_program().Brian
For generating fragment programs which implement pixel transfer ops.
2007-10-30Enable immediates in TGSI and work with them in LLVM code.Zack Rusin
Enables immediates by default in the TGSI translation code and adds code handling it in llvm tgsi translation.
2007-10-29Make it compile under linux.Michal Krol
Move pipe_region/surface_reference functions to pipe/p_inlines.h. Remove #include "p_util.h" from pipe/p_context.h.
2007-10-29remove dead codeBrian
2007-10-29check for signed vs. unsigned in st_get_format_info() - fixes accum buffer ↵Brian
failure
2007-10-29simplify code which access the current vertex/fragment shadersBrian
2007-10-29Remove typedefs from enums.Zack Rusin
typedefs are rather evil, remove them and use the enum keyword explicitely.
2007-10-29Refactor the LLVM code a bit.Zack Rusin
Move the CPU vertex shader execution code to the draw module, remove traces of LLVM from the state tracker, abstract execution engine for the purposes of the draw module.
2007-10-29Remove TGSI_INTERPOLATE_ATTRIB.Michal Krol
2007-10-29Fix newlines.Michal Krol
2007-10-28Update comments.Michal Krol
2007-10-28Replace supported_formats with is_format_supported interface.Michal Krol
The old supported_formats interface returned a list of formats supported by a pipe/winsys implementation. This was reasonable when gallium had a fixed list of predefined format. Now things has changed and the definition of PIPE_FORMAT is more flexible. The new shiny is_format_supported interface gets PIPE_FORMAT as an argument and returns a boolean whether this particular format is supported.
2007-10-28Declare temporaries in a more compact fashion.michal
The following declarations: DCL TEMP[0] DCL TEMP[1] DCL TEMP[2] DCL TEMP[4] become: DCL TEMP[0..2] DCL TEMP[4]
2007-10-28Declare temporaries in a more compact fashion.michal
The following declarations: DCL TEMP[0] DCL TEMP[1] DCL TEMP[2] DCL TEMP[4] become: DCL TEMP[0..2] DCL TEMP[4]
2007-10-27Use PIPE_FORMAT in state tracker.michal
Fix PIPE_FORMAT field encoding. Re-implement st_get_format_info.
2007-10-27Refactor supported format queries.michal
2007-10-27Remove PIPE_FORMAT_COUNT references.michal
2007-10-27Comments about texture instructions and the src regsBrian
2007-10-27Move mesa_to_tgsi.[ch] to state_trackerBrian
2007-10-27Move mesa_to_tgsi.[ch] into state tracker.Brian
2007-10-26Re-implement GLSL texture sampler variables.Brian
GLSL sampler variables indicate which texture unit to use for TEX instructions. Previously, this was baked into the fragment/vertex program and couldn't be readily changed once set. Now, SamplerUnits[] array indicates which texture unit is to be used for each sampler variable. These values are set with glUniform1i(). This is extra state that must be passed to the fragment/vertex program executor at runtime.
2007-10-26surface_alloc() is now a winsys function.Brian
This allows surfaces to be allocated without a rendering context. A few loose ends to resolve, but in working condition.
2007-10-25Move region_alloc() and region_release() to pipe_winsys.Brian
This allows regions to be allocated w/out a rendering context.
2007-10-25silence warningBrian
2007-10-25Move the get/put_tile() functions to pipe_context.Brian
The _rgba versions are temporary until the state tracker is updated.
2007-10-24Fix glDrawElements + VBO rendering when ptr/offset is not zero.Brian
When an index VBO is bound, glDrawElement's indices pointer is really an offset into the element buffer. Add that offset to the prims[i].start value before calling pipe->draw_elements(). Fixes vbo.c conform test.
2007-10-24Revert "Undo indexOffset change (I think, git???)"Brian
This reverts commit 11ce6244a79106c592364b30434b6ddade3fd6bb.