Brian Paul
89bb19adb0
intel: use swrast code to map/unmap renderbuffers for swrast rendering
2012-01-24 14:12:38 -07:00
Brian Paul
4baf90353d
mesa: update comments, fix whitespace in dd.h
2012-01-24 14:12:38 -07:00
Brian Paul
9403cc3aba
swrast: remove unused StoreTexel code
...
No longer needed since we do all rendering to texture with the buffer
mapping and pixel packing functions.
2012-01-24 14:12:37 -07:00
Brian Paul
1caf698191
swrast: use Map/UnmapTextureImage() in framebuffer map/unmap code
...
When we're actually rendering into a texture, map the texture image
instead of the corresponding renderbuffer. Before, we just copied
a pointer from the texture image to the renderbuffer. This change
will make the code usable by hardware drivers.
2012-01-24 14:12:37 -07:00
Brian Paul
56d83ac4bf
mesa: remove ctx->Driver.Map/UnmapTexture() hooks
...
No longer used anywhere.
2012-01-24 14:12:37 -07:00
Brian Paul
8b8a54afd9
nouveau: stop calling ctx->Driver.Map/UnmapTexture()
...
And remove unused nouveau_texture_map/unmap()
2012-01-24 14:12:36 -07:00
Brian Paul
4bbab2275f
tnl: remove ctx->Driver.Map/UnmapTexture() calls
...
ctx->Driver.MapTexture() always points to _swrast_map_texture().
We're already reaching into swrast from t_vb_program.c anyway.
This will let us remove the ctx->Driver.Map/UnmapTexture() functions.
2012-01-24 14:12:36 -07:00
Brian Paul
bde356a158
swrast: move some renderbuffer functions to s_renderbuffer.c
2012-01-24 14:12:35 -07:00
Brian Paul
1839a7fc9f
intel: remove intel_span_supports_format()
...
It always returned True.
2012-01-24 14:12:34 -07:00
Brian Paul
6c1e27ba21
swrast: remove a few extra _mesa_get_format_bytes() calls
2012-01-24 14:12:34 -07:00
Brian Paul
1da7d6c919
mesa: update comments for gl_renderbuffer
2012-01-24 14:12:33 -07:00
Brian Paul
1888dd52a3
mesa/swrast/drivers: remove obsolete gl_renderbuffer fields
...
This removes the last of the legacy fields from gl_renderbuffer.
2012-01-24 14:12:33 -07:00
Brian Paul
becbb64313
dri/swrast: use swrast_renderbuffer type
2012-01-24 14:12:33 -07:00
Brian Paul
0c1862851f
swrast: use swrast_renderbuffer instead of gl_renderbuffer
2012-01-24 14:12:32 -07:00
Brian Paul
797c18be1f
osmesa: use swrast_renderbuffer
2012-01-24 14:12:32 -07:00
Brian Paul
c080202db5
radeon: derive radeon_renderbuffer from swrast_renderbuffer
2012-01-24 14:12:31 -07:00
Brian Paul
9f8ed9d662
intel: derive intel_renderbuffer from swrast_renderbuffer
...
Drivers that rely on swrast need to do this, as with swrast_texture_image.
2012-01-24 14:12:31 -07:00
Brian Paul
d16e71eeb4
xlib: derive xmesa_renderbuffer from swrast_renderbuffer
2012-01-24 14:12:31 -07:00
Brian Paul
f2479530b8
swrast: allocate swrast_renderbuffers instead of gl_renderbuffers
2012-01-24 14:12:30 -07:00
Brian Paul
34988272d9
swrast: new swrast_renderbuffer type
...
This will let us move the swrast-specific fields out of gl_renderbuffer.
2012-01-24 14:12:30 -07:00
Brian Paul
924de7dc96
intel: use intel_rb_format() to get renderbuffer format
...
This will make future changes cleaner and less invasive.
2012-01-24 14:12:29 -07:00
Brian Paul
1048d55d5f
dri/swrast: rename swrast_renderbuffer to dri_swrast_renderbuffer
...
To prevent name collision with future swrast_renderbuffer in the swrast
module.
2012-01-24 14:12:29 -07:00
Brian Paul
c45771905f
swrast: use stencil packing function in s_stencil.c
2012-01-24 14:12:28 -07:00
Brian Paul
881ef2a9db
swrast: use color packing functions in s_span.c
2012-01-24 14:12:28 -07:00
Brian Paul
8696a52102
swrast: remove s_spantemp.h
2012-01-24 14:12:27 -07:00
Brian Paul
b0f0d7a811
xlib: remove xm_span.c and related code
2012-01-24 14:12:27 -07:00
Brian Paul
59a5b5a193
mesa: remove gl_renderbuffer::Wrapped
...
There's no such thing as renderbuffer wrappers anymore.
2012-01-24 14:12:27 -07:00
Brian Paul
ab331140c6
swrast: rewrite, simplify the the render-to-texture code
2012-01-24 14:12:26 -07:00
Brian Paul
7a36345f70
mesa: rename gl_renderbuffer::Data to Buffer
...
To better indicate that this pointer to the malloc'd memory.
2012-01-24 14:12:26 -07:00
Brian Paul
f6a3979a04
mesa: move freeing of software renderbuffers into swrast
2012-01-24 14:12:25 -07:00
Brian Paul
f9874feef4
mesa: remove gl_renderbuffer::DataType
2012-01-24 14:12:24 -07:00
Brian Paul
1e1b5cb01a
mesa: remove gl_renderbuffer:RowStride field
2012-01-24 14:12:24 -07:00
Brian Paul
82846fea4d
mesa: finally, remove the GetRow/PutRow/etc functions
2012-01-24 14:12:23 -07:00
Brian Paul
304f7a1327
dri: remove all the obsolete spantmp files
2012-01-24 14:12:23 -07:00
Brian Paul
a4c6dedb27
radeon: remove obsolete GetRow/PutRow code
2012-01-24 14:12:22 -07:00
Brian Paul
f892debdc2
nouveau: remove obsolete GetRow/PutRow code
2012-01-24 14:12:21 -07:00
Brian Paul
41869c4942
intel: remove most of the span Get/PutRow code
2012-01-24 14:12:21 -07:00
Brian Paul
cb5fa9ea62
dri/swrast: remove obsolete GetRow/PutRow code
2012-01-24 14:12:20 -07:00
Brian Paul
2873555a76
osmesa: remove obsolete GetRow/PutRow code
2012-01-24 14:12:19 -07:00
Brian Paul
2e80c7e5bf
xlib: remove obsolete GetRow/PutRow code
2012-01-24 14:12:18 -07:00
Brian Paul
0d2f0c8bb8
mesa: remove obsolete PutRow, etc assignments
2012-01-24 14:12:17 -07:00
Brian Paul
d65bbfa947
swrast: remove Get/PutRow()-related code
2012-01-24 14:12:16 -07:00
Brian Paul
a4a566a610
st/mesa: remove gl_renderbuffer::GetPointer stuff
2012-01-24 14:12:16 -07:00
Brian Paul
0ff817f200
swrast: stop using Put/GetRow/Values() in swrast code
...
All color buffer rendering is now done by accessing mapped renderbuffer
memory. We're now able to get rid of all the GetRow/PutRow stuff.
2012-01-24 14:12:15 -07:00
Brian Paul
b766d4bb43
swrast: use gl_renderbuffer::StrideInBytes in depth/stencil code
2012-01-24 14:12:15 -07:00
Brian Paul
7d1ddec921
mesa: use gl_renderbuffer::Map for all depth/stencil accesses
...
Instead of using the obsolete gl_renderbuffer::Data field.
Color buffer are still accessed through GetRow/PutRow().
2012-01-24 14:12:14 -07:00
Brian Paul
14da67d9b9
intel: make intel_renderbuffer_map/unmap() static
2012-01-24 14:12:13 -07:00
Brian Paul
827c1d66f6
mesa: add new gl_renderbuffer fields
...
These are temporary, actually, but they'll make follow-on work easier to
implement in a step-by-step manner. Eventually the Map and RowStrideBytes
fields will go into a new swrast_renderbuffer type, but adding that type
now would involve touching a _lot_ of code that'll eventually be removed.
The fields marked as obsolete will go away completely at some point.
2012-01-24 14:12:12 -07:00
Brian Paul
fc9f74839d
swrast: flush pending rendering before unmapping buffers
2012-01-24 14:12:12 -07:00
Brian Paul
33257803d9
swrast: new assertions in _swrast_pixel_address()
2012-01-24 14:12:11 -07:00