summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_cb_bitmap.c
AgeCommit message (Collapse)Author
2008-11-26gallium: fix glBitmap color bugBrian Paul
By time we get around to rendering the cached bitmap, the current color may have changed. Need to make sure we load the constant slot with the cached color.
2008-09-03gallium: Have pipe_buffer_* receive a pipe_screen instead of a pipe_context.José Fonseca
We want to use the pipe_buffer_* inlines everywhere, but a pipe context is not always available nor is it needed.
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-19gallium: Finer grained is_format_supported.José Fonseca
2008-07-03gallium: fix surface memleak in bitmap codeBrian Paul
Found w/ tunnel2.c demo.
2008-06-27gallium: Drop pipe_texture->cpp and pipe_surface->cpp.José Fonseca
The chars-per-pixel concept falls apart with compressed and yuv images, where more than one pixel are coded in a single data block.
2008-06-24mesa: More signed/unsigned float/integer fixes.José Fonseca
2008-06-17gallium: need to flush bitmap cache when raster color changesBrian Paul
2008-05-31mesa: Apply MSVC portability fixes from Alan Hourihane.José Fonseca
2008-05-27gallium: Always unreference bitmap cache texture before resetting the cache.Michel Dänzer
Fixes assertion failure with tunnel2 demo.
2008-05-20Merge branch 'gallium-0.1' into gallium-tex-surfacesBrian Paul
2008-05-20gallium: fix shader mem leakBrian Paul
2008-05-19gallium: remove dead codeBrian Paul
2008-05-19gallium: remove dead codeBrian Paul
2008-05-16gallium: fix glBitmap surface memleak in context tear-downBrian Paul
2008-05-08gallium: remove dead codeBrian Paul
2008-05-08gallium: no-op st_Bitmap() if width or height is zeroBrian Paul
2008-05-02gallium: Add texture usage flags, special-case allocation of display targetsKeith Whitwell
For many envirionments it's necessary to allocate display targets in a window-system friendly manner. Add facilities so that a driver can tell if a texture is likely to be used to generate a display surface and if use special allocation paths if necessary. Hook up softpipe to call into the winsys->surface_alloc_storage() routine in this case, though we probably want to change that interface slightly also.
2008-05-01gallium: tex surface checkpointKeith Whitwell
2008-04-30gallium: use the newer PIPE_FORMAT_x_UNORM format namesBrian Paul
2008-04-30gallium: use new buffer wrapper functions in p_inlines.hBrian Paul
This allows us to remove most of the direct references to winsys in the state tracker.
2008-04-30gallium: consolidate the bitmap->texel conversion codeBrian Paul
2008-04-30gallium: create a new texture each time we init/flush the bitmap cacheBrian Paul
2008-04-30gallium: simplify texture format selectionBrian Paul
2008-04-29gallium: flush pipe before updating bitmap textureBrian Paul
Fixes duplicated text bug in progs/tests/texwrap.c
2008-04-25gallium: remove unneeded st->bitmap_texcoord_biasBrian Paul
2008-04-24gallium: disable the bitmap/texcoord biasBrian Paul
Doesn't seem to be needed after fixing the float->int conversion problem.
2008-04-24gallium: use cso_destroy_vertex/fragment_shader() functionsBrian Paul
Also, rearrange the st_destroy_context() code a bit to prevent some invalid/NULL ptr derefs during tear-down.
2008-04-22gallium: fix some bitmap frag shader issuesBrian Paul
If texturing happens to be enabled when glBitmap() is called, need to be careful about choosing a sampler unit, etc.
2008-04-22gallium: How about restoring shaders instead of saving them again...Michel Dänzer
2008-04-21use cso fs/vs handle functionsKeith Whitwell
2008-04-21gallium: Use CSO cache for shaders.Michel Dänzer
2008-04-07gallium: check ctx->DrawBuffer before flushing bitmap cache.Brian Paul
During context unbind, we may not have a draw buffer. This fixes demos/tunnel2.c
2008-04-04gallium: make sure to set the SamplersUsed field for bitmap/drawpixels shadersBrian Paul
Also, make sure that field is copied/updated in the program clone and combine functions. Without this we weren't getting SAMP declarations in the TGSI shaders.
2008-04-03gallium: set rasterizer.gl_rasterization_rules = 1 in a few more placesBrian
2008-03-31gallium: used inverted bitmap texture to simplify the fragment shader.Brian
"Off" bits get stored as texel=0xff and "on" bits get stored as texel=0x0. Then use KIL -tmp to kill the off bits and keep the on bits. This shortens the fragment program by two instructions.
2008-03-31gallium: use cso_save/restore_sampler_textures() functionsBrian
2008-03-31gallium: set the bypass_vs flag nowBrian
The glBitmap vertex shader is a no-op, but we still have to specify it in order to convey the number of inputs/outputs.
2008-03-31gallium: turn on clipping for bitmapsBrian
Bitmaps can extend beyond window edges so we need to clip. Also, move some state atom vars to st_context to be a bit more efficient.
2008-03-28gallium: begin some bounding box code for bitmap cacheBrian
2008-03-28gallium: added an (int) cast in setup_bitmap_vertex_data() to fix a ↵Brian
signed/unsigned arithmetic problem Negative values became very large uints.
2008-03-28gallium: disable a debug hackBrian
2008-03-28gallium: implement a glBitmap cacheBrian
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.
2008-03-27gallium: Update calls to the simple shader functionsBrian
2008-03-26gallium: need to call st_validate_state() in Bitmap()Brian Paul
2008-03-24gallium: free bitmap fragment shaders, misc clean-upBrian Paul
2008-03-24gallium: add missing cso_save_samplers() callBrian Paul
2008-03-21Refactor PBO validate/map code.Brian
We always need to do PBO validation, so do that in core Mesa before calling driv er routine. cherry-picked from Mesa/master.
2008-03-21gallium: implement PBO operations for glDraw/ReadPixels and glBitmapBrian Paul
At this time there are no optimizations for directly blitting between buffer objects and surfaces (always go through mappings). glean pbo test passes now
2008-03-20gallium: glBitmap code now separated from glDraw/CopyPixels codeBrian