Brian Paul
8e5cf4cb45
mesa: update comments for gl_renderbuffer
...
(cherry picked from commit 1da7d6c919 )
2012-01-27 18:02:41 -08:00
Brian Paul
1fd179b984
mesa/swrast/drivers: remove obsolete gl_renderbuffer fields
...
This removes the last of the legacy fields from gl_renderbuffer.
(cherry picked from commit 1888dd52a3 )
2012-01-27 18:02:41 -08:00
Brian Paul
843194d89f
dri/swrast: use swrast_renderbuffer type
...
(cherry picked from commit becbb64313 )
2012-01-27 18:02:41 -08:00
Brian Paul
7c95a4ec22
swrast: use swrast_renderbuffer instead of gl_renderbuffer
...
(cherry picked from commit 0c1862851f )
2012-01-27 18:02:41 -08:00
Brian Paul
9567178ca2
osmesa: use swrast_renderbuffer
...
(cherry picked from commit 797c18be1f )
2012-01-27 18:02:40 -08:00
Brian Paul
83602e8342
radeon: derive radeon_renderbuffer from swrast_renderbuffer
...
(cherry picked from commit c080202db5 )
2012-01-27 18:02:40 -08:00
Brian Paul
b31bfae0db
intel: derive intel_renderbuffer from swrast_renderbuffer
...
Drivers that rely on swrast need to do this, as with swrast_texture_image.
(cherry picked from commit 9f8ed9d662 )
2012-01-27 18:02:40 -08:00
Brian Paul
49ab5ad142
xlib: derive xmesa_renderbuffer from swrast_renderbuffer
...
(cherry picked from commit d16e71eeb4 )
2012-01-27 18:02:40 -08:00
Brian Paul
5916b15247
swrast: allocate swrast_renderbuffers instead of gl_renderbuffers
...
(cherry picked from commit f2479530b8 )
2012-01-27 18:02:40 -08:00
Brian Paul
a36cc604cf
swrast: new swrast_renderbuffer type
...
This will let us move the swrast-specific fields out of gl_renderbuffer.
(cherry picked from commit 34988272d9 )
2012-01-27 18:02:40 -08:00
Brian Paul
73ed8cec4a
intel: use intel_rb_format() to get renderbuffer format
...
This will make future changes cleaner and less invasive.
(cherry picked from commit 924de7dc96 )
2012-01-27 18:02:40 -08:00
Brian Paul
c6e56a69d8
dri/swrast: rename swrast_renderbuffer to dri_swrast_renderbuffer
...
To prevent name collision with future swrast_renderbuffer in the swrast
module.
(cherry picked from commit 1048d55d5f )
2012-01-27 18:02:40 -08:00
Brian Paul
d980b8350f
swrast: use stencil packing function in s_stencil.c
...
(cherry picked from commit c45771905f )
2012-01-27 18:02:40 -08:00
Brian Paul
143999bdd8
swrast: use color packing functions in s_span.c
...
(cherry picked from commit 881ef2a9db )
2012-01-27 18:02:39 -08:00
Brian Paul
ae3bd76e31
swrast: remove s_spantemp.h
...
(cherry picked from commit 8696a52102 )
2012-01-27 18:02:39 -08:00
Brian Paul
86fc256131
xlib: remove xm_span.c and related code
...
(cherry picked from commit b0f0d7a811 )
2012-01-27 18:02:39 -08:00
Brian Paul
5cb5aa4a84
mesa: remove gl_renderbuffer::Wrapped
...
There's no such thing as renderbuffer wrappers anymore.
(cherry picked from commit 59a5b5a193 )
2012-01-27 18:02:39 -08:00
Brian Paul
f0ad188c9f
swrast: rewrite, simplify the the render-to-texture code
...
(cherry picked from commit ab331140c6 )
2012-01-27 18:02:39 -08:00
Brian Paul
8786555199
mesa: rename gl_renderbuffer::Data to Buffer
...
To better indicate that this pointer to the malloc'd memory.
(cherry picked from commit 7a36345f70 )
2012-01-27 18:02:39 -08:00
Brian Paul
f29212ecba
mesa: move freeing of software renderbuffers into swrast
...
(cherry picked from commit f6a3979a04 )
2012-01-27 18:02:39 -08:00
Brian Paul
8e5e735424
mesa: remove gl_renderbuffer::DataType
...
(cherry picked from commit f9874feef4 )
2012-01-27 18:02:39 -08:00
Brian Paul
f5367c4503
mesa: remove gl_renderbuffer:RowStride field
...
(cherry picked from commit 1e1b5cb01a )
2012-01-27 18:02:39 -08:00
Brian Paul
d60bcbe31d
mesa: finally, remove the GetRow/PutRow/etc functions
...
(cherry picked from commit 82846fea4d )
2012-01-27 18:02:38 -08:00
Brian Paul
64deeddce8
dri: remove all the obsolete spantmp files
...
(cherry picked from commit 304f7a1327 )
2012-01-27 18:02:38 -08:00
Brian Paul
514fcec7da
radeon: remove obsolete GetRow/PutRow code
...
(cherry picked from commit a4c6dedb27 )
2012-01-27 18:02:38 -08:00
Brian Paul
9b5e402837
nouveau: remove obsolete GetRow/PutRow code
...
(cherry picked from commit f892debdc2 )
2012-01-27 18:02:38 -08:00
Brian Paul
57df49908e
intel: remove most of the span Get/PutRow code
...
(cherry picked from commit 41869c4942 )
2012-01-27 18:02:38 -08:00
Brian Paul
38e4496ac3
dri/swrast: remove obsolete GetRow/PutRow code
...
This is a squash of:
dri/swrast: remove obsolete GetRow/PutRow code
(cherry picked from commit cb5fa9ea62 )
and
dri/swrast: remove obsolete swrast_span.c file from source list
(cherry picked from commit a9bf149e7f )
Conflicts:
src/mesa/drivers/dri/swrast/Makefile.sources
2012-01-27 18:02:14 -08:00
Brian Paul
39d978a60c
osmesa: remove obsolete GetRow/PutRow code
...
(cherry picked from commit 2873555a76 )
2012-01-27 17:43:22 -08:00
Brian Paul
e4b42d618c
xlib: remove obsolete GetRow/PutRow code
...
(cherry picked from commit 2e80c7e5bf )
2012-01-27 17:43:22 -08:00
Brian Paul
d85b4bae0e
mesa: remove obsolete PutRow, etc assignments
...
(cherry picked from commit 0d2f0c8bb8 )
2012-01-27 17:43:22 -08:00
Brian Paul
3dd8937492
swrast: remove Get/PutRow()-related code
...
(cherry picked from commit d65bbfa947 )
2012-01-27 17:43:22 -08:00
Brian Paul
1f0cc3faf2
st/mesa: remove gl_renderbuffer::GetPointer stuff
...
(cherry picked from commit a4a566a610 )
2012-01-27 17:43:22 -08:00
Brian Paul
f00ba21915
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.
(cherry picked from commit 0ff817f200 )
2012-01-27 17:43:22 -08:00
Brian Paul
c8562a6ed3
swrast: use gl_renderbuffer::StrideInBytes in depth/stencil code
...
(cherry picked from commit b766d4bb43 )
2012-01-27 17:43:22 -08:00
Brian Paul
48173180b5
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().
(cherry picked from commit 7d1ddec921 )
2012-01-27 17:43:22 -08:00
Brian Paul
349d5a8a38
intel: make intel_renderbuffer_map/unmap() static
...
(cherry picked from commit 14da67d9b9 )
2012-01-27 17:43:21 -08:00
Brian Paul
fee5f10241
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.
(cherry picked from commit 827c1d66f6 )
2012-01-27 17:43:21 -08:00
Brian Paul
83eb5e4372
swrast: flush pending rendering before unmapping buffers
...
(cherry picked from commit fc9f74839d )
2012-01-27 17:43:21 -08:00
Brian Paul
5f6676b0ee
swrast: new assertions in _swrast_pixel_address()
...
(cherry picked from commit 33257803d9 )
2012-01-27 17:43:21 -08:00
Brian Paul
7c6f54811c
swrast: use _swrast_pixel_address() in more places
...
(cherry picked from commit e34a54ff45 )
2012-01-27 17:43:21 -08:00
Brian Paul
a42dcf1614
swrast: s/Data/Map/ in swrast_texture_image
...
To indicate that it points to mapped texture memory.
(cherry picked from commit bd3c10c0f0 )
2012-01-27 17:43:21 -08:00
Brian Paul
573e1478eb
swrast: remove gl_renderbuffer::DataType check in DrawPixels()
...
The field will be going away so update this code.
(cherry picked from commit ecb8594c18 )
2012-01-27 17:43:21 -08:00
Brian Paul
490057ae81
swrast: remove gl_renderbuffer::DataType assertions
...
This field will go away, so remove some uses of it.
(cherry picked from commit 7726be1c1b )
2012-01-27 17:43:21 -08:00
Brian Paul
d2d1419ba0
st/mesa: remove gl_renderbuffer:DataType assignments
...
That field is only used by swrast code so there's no reason to mess
with it in the gallium state tracker.
This also lets us remove the unused st_format_data() type function and
related code.
(cherry picked from commit ca6d86d26b )
2012-01-27 17:43:21 -08:00
Brian Paul
0941b808a6
swrast: make _swrast_get_values(), _swrast_get_row() static
...
They were only called from in s_span.c
(cherry picked from commit ff57b0f037 )
2012-01-27 17:43:21 -08:00
Brian Paul
ac6074de17
swrast: remove dstType param from _swrast_read_rgba_span()
...
It was always GL_FLOAT.
(cherry picked from commit 267fb17884 )
2012-01-27 17:43:21 -08:00
Brian Paul
289a7e74b3
swrast: remove unused _swrast_put_row()
...
(cherry picked from commit 64be85540f )
2012-01-27 17:43:21 -08:00
Chad Versace
889f756c28
swrast: Fix unsigned promotion in pointer arithmetic
...
When rowstride was negatie, unsigned promotion caused a segfault here:
299│ if (rb->Format == MESA_FORMAT_S8) {
300│ const GLuint rowStride = rb->RowStride;
301│ for (i = 0; i < count; i++) {
302│ if (x[i] >= 0 && y[i] >= 0 && x[i] < w && y[i] < h) {
303├> stencil[i] = *(map + y[i] * rowStride + x[i]);
304│ }
305│ }
306│ }
Fixes segfault in oglconform
separatestencil-neu(NonPolygon.BothFacesBitmapCoreAPI),
though test still fails.
Note: This is a candidate for the stable branches.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43327
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
(cherry picked from commit aed5c8299f )
2012-01-27 17:43:21 -08:00
Eric Anholt
e10c47adff
mesa: Fix CopyTex{Sub,}Image error checks for integer vs non-integer.
...
Fixes Intel oglconform negative.typeFormatMismatch.copyteximage.
NOTE: This is a candidate for the 8.0 branch.
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 422b18794e )
2012-01-27 11:29:27 -08:00