Commit graph

92185 commits

Author SHA1 Message Date
Brian
2b2f761e2b Initial implementation of surface tile caching.
Instead of using read/write_quad() functions, do framebuffer accesses via
get/put_tile().  A cache of tiles is used to avoid frequent get/put() calls.
Only implemented for color buffers right now.
2007-10-19 10:10:08 -06:00
Brian
46c3cf1831 Tile cache functions. 2007-10-19 10:08:24 -06:00
Brian
5cf4fc5832 clamp/clip in put_tile(), move softpipe_init_surface_funcs() call 2007-10-19 10:07:55 -06:00
Brian
b57f573b99 remove old comment 2007-10-18 16:27:01 -06:00
Brian
0007cd7ba0 Alternate CopyPixels path based on get/put_tile().
For some drivers (like Xlib) it's not possible to treat the front/back color
buffers as pipe_regions.  So pipe->region_copy() won't work.  Added a new
state tracker field indicating if we can use regions for colorbuffer accesses.
This should probably be re-considered someday...
2007-10-18 15:18:55 -06:00
Brian
5d39f4f9fd fix bug in copy_rect(), use temp vars in sp_region_copy() to aid debugging 2007-10-18 15:14:50 -06:00
Brian
874b6b9960 fix off-by-one error in CopyPixels src position 2007-10-18 14:30:03 -06:00
Brian
d44e515fd7 fix upside down CopyPixels image 2007-10-18 14:22:38 -06:00
Brian
68b88fab88 fix function name 2007-10-18 14:20:38 -06:00
Brian
563584a4ee checkpoint: code refactoring for glCopyPixels 2007-10-18 13:27:10 -06:00
Kristian Høgsberg
a074857cdc glxinfo: Try creating a GLX context using an fbconfig if no visuals are available. 2007-10-18 15:19:38 -04:00
Brian
bdc574c5bd start implementing glCopyPixels (stencil works) 2007-10-18 12:31:35 -06:00
Brian
8f3fb395ff make read_stencil_pixels() non-static 2007-10-18 12:31:05 -06:00
Brian
447c93dd1b Change type of shader->executable field from void * to generic function pointer.
Fix warnings in draw_create_vertex_shader()
2007-10-18 11:41:13 -06:00
Brian
b21f4ac15f added const qualifiers 2007-10-18 11:41:12 -06:00
Brian
2ae9f53c9d better debug code, silence some warnings 2007-10-18 11:41:12 -06:00
Brian
54c5262eaf print vertex input mapping 2007-10-18 11:41:12 -06:00
Brian
5bd119f943 handle fogcoord/raster distance 2007-10-18 11:41:12 -06:00
Brian
66586762f1 added st_debug.c 2007-10-18 11:41:12 -06:00
Brian
958c92e0c7 debug functions 2007-10-18 11:41:12 -06:00
Brian
376fb1c23e fix logic error in stipple_quad() (point/line fragments were getting dropped) 2007-10-18 11:41:12 -06:00
Oliver McFadden
a22fafbb4b Corrected the file permissions in src/mesa/pipe. 2007-10-18 16:36:04 +00:00
Michel Dänzer
950fff0f9a i915: Add some sanity checks to blit command debugging code. 2007-10-18 18:30:15 +02:00
Oliver McFadden
d16b844ff6 pipe/draw/draw_context.c:47: error: 'false' undeclared (first use in this function) 2007-10-18 16:01:42 +00:00
Oliver McFadden
7cd58433fa sp_context.c:255: error: 'false' undeclared (first use in this function) 2007-10-18 15:56:21 +00:00
Ian Romanick
a663e846b6 Framework for supporting z24_s8 and z32 depth textures on r300. 2007-10-17 16:25:39 -07:00
Ian Romanick
42a4386a4c Initial support for ARB_depth_texture
Currently only GL_DEPTH_COMPONENT16 are supported.  I don't know what the
hardware bits are to select the other formats, but it shouldn't be too hard
to figure out.
2007-10-17 16:25:39 -07:00
Ian Romanick
b961eccc92 Support cards that have ARB_fp but not ARB_shadow. 2007-10-17 16:25:39 -07:00
Ian Romanick
374158b044 mga: Enable (trivial) support for GL_APPLE_vertex_array_object, bump DRIVER_DATE 2007-10-17 16:25:39 -07:00
Ian Romanick
366b2c6902 mga: Enable (trivial) support for GL_EXT_gpu_program_parameters. 2007-10-17 16:25:38 -07:00
Brian
17c2f56dc3 fix interpolation bug in nearest-image/linear-mipmap filtering 2007-10-17 17:22:06 -06:00
Brian
f953c223df remove #include vf.h 2007-10-17 16:23:25 -06:00
Brian
52111366cc disable the NeedFlush assertion for now 2007-10-17 16:19:10 -06:00
Brian
49adf51eee Add some FLUSH_CURRENT() calls.
Without these we can find ourselves in _mesa_load_state_parameters()
computing derived lighting/material values whhen the current material
properties haven't been updated from the VBO.
This may be a somewhat wide-spread problem that needs more attention...
2007-10-17 16:18:45 -06:00
Brian
420c062cb6 Assert that there's no outstanding current state that needs to be flushed from the vbo in _mesa_load_state_parameters().
Several of the state parameters use current state (such as materials).
Need to make sure those values are not stale.
2007-10-17 15:59:59 -06:00
Kristian Høgsberg
aad5c0fdc7 pbutil: Do not require GLX_SGIX_pbuffer for fbconfig only-functions. 2007-10-17 17:04:59 -04:00
Brian
5cb0d749b0 formatting fix 2007-10-17 14:57:15 -06:00
Brian
e48ea92510 fix addressing error in read_stencil_pixels() 2007-10-17 14:56:55 -06:00
Brian
ad053d90f0 Replace repeat_remainder() with a simpler macro that just casts args to unsigned. 2007-10-17 14:30:44 -06:00
Brian
906768316d Replace repeat_remainder() with simpler macro that just casts args to unsigned. 2007-10-17 14:29:12 -06:00
Brian
df4410a597 reorder params to get_texel() 2007-10-17 14:16:42 -06:00
Brian
3d6f9d904f implement 3D texture sampling 2007-10-17 14:13:21 -06:00
Kristian Høgsberg
6c753ad51d Pull workaround for unset GLX_DRAWABLE_TYPE back in.
The old version just set GLX_DRAWABLE_TYPE to GLX_WINDOW_BIT for
configs received through glXGetVisualConfigs and to
GLX_WINDOW_BIT | GLX_PIXMAP_BIT for configs received as FBConfigs.
The X server needs to send this info, but keep the workaround for now.

Fixes #12835.
2007-10-17 15:06:11 -04:00
Kristian Høgsberg
a5b4bb393f glxinfo: Also print number of fbconfigs. 2007-10-17 15:06:11 -04:00
Brian
7392dac962 When in GL_FEEDBACK mode, make sure we emit color and texcoord registers. 2007-10-17 12:42:29 -06:00
Brian
38743e2ef1 generate selection hit if in selection mode and pos is not clipped 2007-10-17 12:32:21 -06:00
Brian
4338f0f709 Update framebuffer state in response to _NEW_COLOR (set by glDrawBuffer) 2007-10-17 12:27:40 -06:00
Brian
2dd27cfdd9 Fix viewport Z scale/bias to get the right Z values from drawing the quad. 2007-10-17 11:24:06 -06:00
Brian
4f23468bd0 don't crash if texture border is used (unsupported for now) 2007-10-17 10:52:30 -06:00
Brian
863cc0af74 fix square point rasterization 2007-10-17 10:51:55 -06:00