Brian Paul
074637bf99
xlib: remove STENCIL_BITS
2012-02-24 08:03:13 -07:00
Brian Paul
5f60a00743
st/glx: remove STENCIL_BITS, DEFAULT_SOFTWARE_DEPTH_BITS
...
Remove some Mesa/swrast stuff.
2012-02-24 08:03:13 -07:00
Brian Paul
630ab0d27b
mesa: remove last of MAX_WIDTH, MAX_HEIGHT
...
Define new MAX_VIEWPORT_WIDTH/HEIGHT and MAX_RENDERBUFFER_SIZE values
instead.
2012-02-24 08:03:12 -07:00
Brian Paul
70d3363757
mesa: remove MAX_WIDTH from prog_execute.h
...
define a PROG_MAX_WIDTH var instead. It has to match MAX_WIDTH in
swrast. More elaborate refactoring could fix that (someday).
2012-02-24 08:03:12 -07:00
Brian Paul
0a543eb5c4
st/glx: remove MAX_WIDTH/HEIGHT usage
2012-02-24 08:03:11 -07:00
Brian Paul
3ff527fb68
intel: remove MAX_WIDTH usage in intelInitContext()
2012-02-24 08:03:11 -07:00
Brian Paul
cb49def3d6
swrast: check max renderbuffer size against SWRAST_MAX_WIDTH
2012-02-24 08:03:10 -07:00
Brian Paul
a3b2c3a421
osmesa: use SWRAST_MAX_WIDTH/HEIGHT
2012-02-24 08:03:10 -07:00
Brian Paul
df22829b9c
dri/swrast: use SWRAST_MAX_WIDTH/HEIGHT
2012-02-24 08:03:09 -07:00
Brian Paul
3f8a61ffa2
xlib: use SWRAST_MAX_WIDTH/HEIGHT
2012-02-24 08:03:08 -07:00
Brian Paul
47d88ef204
swrast: define, use SWRAST_MAX_WIDTH/HEIGHT
...
We'll get rid of MAX_WIDTH, MAX_HEIGHT soon.
2012-02-24 08:03:08 -07:00
Brian Paul
b5d096ac1a
mesa: remove some cruft from config.h
2012-02-24 08:03:07 -07:00
Brian Paul
cfecffeedc
mesa: minor comment clean-ups in config.h
2012-02-24 08:03:07 -07:00
Brian Paul
99d22c4e38
mesa: remove WIN32 MAX_WIDTH work-around in config.h
...
There aren't any more stack-allocated arrays dimensioned by MAX_WIDTH
so there shouldn't be any more stack overflows.
2012-02-24 08:03:06 -07:00
Brian Paul
ed65c5ccc3
swrast: remove MAX_WIDTH array in s_span.c
2012-02-24 08:03:06 -07:00
Brian Paul
30ea34a8d9
swrast: simplify mask array code
2012-02-24 08:03:05 -07:00
Brian Paul
fb1650b202
swrast: stop using MAX_WIDTH arrays in triangle code
2012-02-24 08:03:05 -07:00
Brian Paul
32bf36106e
swrast: remove MAX_WIDTH arrays in stencil code
...
Use some per-context temporary arrays instead.
2012-02-24 08:03:04 -07:00
Brian Paul
401810b658
swrast: remove MAX_WIDTH arrays in s_drawpix.c
2012-02-24 08:03:04 -07:00
Brian Paul
0c70d2c5bb
swrast: remove MAX_WIDTH arrays in s_zoom.c
2012-02-24 08:03:03 -07:00
Brian Paul
237b2fca7a
swrast: remove MAX_WIDTH arrays in s_depth.c
2012-02-24 08:03:03 -07:00
Brian Paul
837b55517e
swrast: remove MAX_WIDTH arrays in s_copypix.c
2012-02-24 08:03:02 -07:00
Brian Paul
08687c7912
mesa: move/fix MAX_WIDTH/HEIGHT-related assertions
...
Max texture and viewport size is only limited by MAX_WIDTH/HEIGHT for swrast.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2012-02-24 08:02:54 -07:00
Brian Paul
3e88e43224
st/mesa: stop using MAX_WIDTH in st_cb_texture.c
...
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2012-02-24 07:59:59 -07:00
Brian Paul
62c69c340e
st/mesa: stop using MAX_WIDTH in st_cb_drawpixels.c
...
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2012-02-24 07:59:58 -07:00
Brian Paul
531eaca41b
mesa: stop using MAX_WIDTH in glReadPixels code
...
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2012-02-24 07:59:58 -07:00
Brian Paul
2e09fe4b9c
mesa: stop using MAX_WIDTH in texstore code
...
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2012-02-24 07:59:57 -07:00
Marek Olšák
a0a9e56cfe
u_blitter: decrease minimum buffer range alignment to 4 for copy_buffer
2012-02-24 02:28:59 +01:00
Marek Olšák
59fbd8c6be
u_blitter: check for invalid values in copy_buffer
2012-02-24 02:28:54 +01:00
Marek Olšák
df00dc3c81
r600g: rework queries
...
We always mapped the query buffer in begin_query, causing stalls
if the buffer was busy.
This commit reworks it such that the query buffer is only mapped
in get_query_result as it's supposed to be.
The query buffer is no longer treated as a ring buffer. Instead, the results
are just appended and when the buffer is full, we create a new one. One query
can have more than one query buffer, though that's a very rare case.
Begin_query releases all query buffers.
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2012-02-23 20:29:56 +01:00
Marek Olšák
5b84a8c3c3
r600g: cleanup magic numbers in set_xx_sampler
...
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2012-02-23 20:29:56 +01:00
Marek Olšák
89293287b8
r600g: remove duplicated evergreen_context_ps_partial_flush
...
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2012-02-23 20:29:56 +01:00
Marek Olšák
84db8f9a22
r600g: remove duplicated evergreen_context_pipe_state_set_sampler
...
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2012-02-23 20:29:56 +01:00
Marek Olšák
edc0ce292b
r600g: remove duplicated set_xx_resource functions
...
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2012-02-23 20:29:56 +01:00
Marek Olšák
985bd5487e
r600g: remove duplicated function r600_state_sampler_init
...
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2012-02-23 20:29:56 +01:00
Marek Olšák
cf59ed3f23
r600g: fixup name of evergreen-specific function
...
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2012-02-23 20:29:56 +01:00
Marek Olšák
04d2828b03
r600g: simplify fail paths in create_context
...
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2012-02-23 20:29:55 +01:00
Marek Olšák
99d5c1a13b
gallium/u_slab: fix possible crash in util_slab_destroy
...
It may happen if util_slab_create has not been called.
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2012-02-23 20:29:55 +01:00
Marek Olšák
6a94c9dde0
r600g: fix possible crashes in destroy_context when failing in create_context
...
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2012-02-23 20:29:55 +01:00
Marek Olšák
9670e72f6e
r600g: consolidate common context init code
...
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2012-02-23 20:29:55 +01:00
Marek Olšák
f841b8a833
r600g: define GROUP_FORCE_NEW_BLOCK in common header
...
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2012-02-23 20:29:55 +01:00
Jakob Bornecrantz
bed7b4aa5f
st/dri: Fix crash in st/dri from dri format commit
...
Introduced with 8de5c355fa , it would probably just crash.
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Jesse Barnes <jbarnes@virtousgeek.org>
2012-02-23 19:16:58 +01:00
Paul Berry
bc39de8c0b
glapi: Fix incorrect enum value.
...
From http://www.opengl.org/registry/specs/ARB/seamless_cube_map.txt :
Accepted by the <cap> parameter of Enable, Disable and IsEnabled,
and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv
and GetDoublev:
TEXTURE_CUBE_MAP_SEAMLESS 0x884F
This caused a change in enums.c, which is manually built from the .xml
files.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-02-23 09:35:44 -08:00
Brian Paul
4a72d859b4
util: add mutex lock in u_debug_memory.c code
...
The linked list of memory allocations was not protected by a mutex.
This lead to sporadic failures with multi-threaded apps.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2012-02-23 07:49:10 -07:00
Brian Paul
810584270d
svga: no-op sampler view referencing if no change
...
Just to be safe with ref counting and avoid atomic operations.
2012-02-23 07:49:09 -07:00
Brian Paul
0fffaa512c
svga: use pipe_sampler_view_release() to avoid segfault
...
This fixes another case of faulting when freeing a pipe_sampler_view
that belongs to a previously destroyed context.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2012-02-23 07:49:09 -07:00
Brian Paul
be05388ce9
st/wgl: check for hPbuffer=0 in wgl pbuffer functions
...
Per the GL_WGL_pbuffer spec, generate ERROR_INVALID_HANDLE and
return FALSE (and don't segfault).
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2012-02-23 07:49:08 -07:00
José Fonseca
9ffc8ea8f4
st/wgl: Fix argument of stw_pixelformat_get_info().
...
stw_pixelformat_get_info takes zero based index, not a 1 based pixel
format number.
2012-02-23 07:49:08 -07:00
Brian Paul
6835103878
st/mesa: use pipe_sampler_view_release()
...
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2012-02-23 07:49:08 -07:00
Brian Paul
4fdf42883f
gallium: added pipe_sampler_view_release() function
...
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2012-02-23 07:49:07 -07:00