Ian Romanick
0342dce226
Don't dereference function pointers in calls.
...
I'm apparently alone in prefering this calling convention, so I'll be
a team player. :p Based on review comments by Brian Paul and Eric
Anholt.
2009-09-03 11:22:47 -07:00
Ian Romanick
18d3409571
Add syncobj.c to SConscript
2009-09-03 11:22:47 -07:00
Ian Romanick
6af24b6b03
Whitespace and include file clean-up.
...
Based on review comments by Brian Paul.
2009-09-03 11:22:47 -07:00
Ian Romanick
0f8fdd8198
Use MIN2 instead of open-coded version
...
Based on review comments by Brian Paul.
2009-09-03 11:22:47 -07:00
Ian Romanick
16b393d059
ARB sync: Fix delete behavior and context destruction behavior
...
I believe this resolves the outstanding issues WRT sync object
deletetion. I have also added a large comment at the top of syncobj.c
describing the expected memory management behavior. I'm still a
little uncertain about the locking on ctx->Shared.
2009-09-03 11:22:46 -07:00
Ian Romanick
f5a22721c5
Add dummy list node type 'struct simple_node'
2009-09-03 11:22:46 -07:00
Ian Romanick
f37070bab6
ARB sync: Add support for GL_ARB_sync to swrast
...
This isn't quite right yet. The delete behavior and the context
clean-up needs some work.
2009-09-03 11:22:46 -07:00
Ian Romanick
96bdd993ec
Eliminate trailing whitespace in extension_helper.c
2009-09-03 11:22:46 -07:00
Ian Romanick
064913430d
ARB sync: Regenerate files from previous commit
2009-09-03 11:22:46 -07:00
Ian Romanick
10a09e49fc
ARB sync: Add base infrastructure for GL_ARB_sync
2009-09-03 11:22:45 -07:00
Ian Romanick
10067e4641
ARB sync: Add infrastructure for glGetInteger64v
2009-09-03 11:22:45 -07:00
Brian Paul
d75a99edd6
mesa: fix typos in separable filter functions
2009-09-03 12:10:53 -06:00
Brian Paul
7a7d5879e2
mesa: compute tex env program key size based on nr_enabled_units
...
When no textures are enabled, the key size is 4 bytes. If unit[0] is
enabled, the key size is 16 bytes.
Inspired by a patch from Chris Wilson.
2009-09-03 11:48:19 -06:00
Brian Paul
5cd7042088
swrast: wrap comment to 80 columns, remove dead code
2009-09-03 11:46:28 -06:00
Brian Paul
2db37ef659
mesa: use new combined PBO validate/map helpers in convolution/filter funcs
2009-09-03 11:45:18 -06:00
Brian Paul
95027a0087
mesa: use new combined PBO validate/map helpers
2009-09-03 11:45:17 -06:00
Brian Paul
dc947c8f92
mesa: combined PBO validate/map helpers
2009-09-03 11:45:17 -06:00
Brian Paul
203f395aaf
mesa: use new _mesa_map_pbo_source/dest() functions in more places
...
This trims down the code a bit. The next step would be to combine
the validate and map operations into one helper...
2009-09-03 11:45:17 -06:00
Brian Paul
1b448c7a5c
mesa: consolidate PBO map/unmap helpers
...
Instead of _mesa_map_readpix_pbo() use _mesa_map_pbo_source().
Instead of _mesa_map_drawpix_pbo() and _mesa_map_bitmap_pbo() use
_mesa_map_pbo_dest().
2009-09-03 11:45:17 -06:00
Brian Paul
e0ec405a9f
intel: helper to debug bufmgr (disabled)
2009-09-03 11:45:17 -06:00
Jakob Bornecrantz
3070b13f4c
i915g: Up the number of relocs
2009-09-03 19:33:07 +01:00
Jakob Bornecrantz
8303c722cb
i915g: Don't run in sync with HW
2009-09-03 19:33:07 +01:00
Jakob Bornecrantz
87a4fa56ae
i915g: Don't send flush flags to HW
2009-09-03 19:33:07 +01:00
Zack Rusin
5643942517
st/xorg: cleanup and adjust to the changes in the ureg code
2009-09-03 12:44:15 -04:00
Zack Rusin
07f9ad5c32
st/xorg: adjust enums in preperation for gradients
2009-09-03 12:41:39 -04:00
Brian Paul
2f6d2a9e27
mesa: change ctx->Driver.BufferData() to return GLboolean for success/failure
...
Return GL_FALSE if we failed to allocate the buffer. Then raise
GL_OUT_OF_MEMORY in core Mesa.
2009-09-03 09:42:38 -06:00
Keith Whitwell
848ab8be8c
aux/tgsi: pull back ureg work from 0.1 branch
...
Manual merge of ureg changes on the branch. Too much unrelated stuff
for a proper merge.
2009-09-03 15:16:25 +01:00
Christoph Bumiller
8b1ef3fa35
nv50: move centroid, flat bits when making interp long
...
Before this, just the perspective divide bit was moved in
convert_to_long of the load interpolant instruction.
2009-09-03 12:54:41 +02:00
Christoph Bumiller
ffee352726
nv50: fix vbo_static_attrib method size error
...
The VTX_ATTR_3/2/1F methods also had size 4 ...
a stupid copy/paste error.
2009-09-03 12:42:42 +02:00
Christoph Bumiller
c8258b95d6
nv50: fix draw_elements_inline_u08/16
...
We've been emitting the same two indices over and over
without incrementing map.
2009-09-03 12:42:42 +02:00
Cooper Yuan
e938d4a053
r300g: specify point/line/triangle have stuffed texture coord
2009-09-03 17:06:18 +08:00
Dave Airlie
c19b52f10f
r600: visual depth has no meaning here.
...
fbos get angry when this happens.
2009-09-03 14:14:47 +10:00
Dave Airlie
a25d0dc9ec
r600: make sure the active shader bo is re-added to persistent list.
2009-09-03 14:14:31 +10:00
Dave Airlie
5f7c532b1e
radeon: pass internal format into the miptree.
...
We need to figure out if the compression format changes.
without this texcmp segfaults if you change format
enough times.
2009-09-03 12:02:54 +10:00
Dave Airlie
e5b93e1161
radeon/dri2: add gl20 bits for r300/r600 just like dri1 does
2009-09-03 12:01:27 +10:00
Dave Airlie
ea26f28c8f
tests/texcmp: glewInit in wrong place
2009-09-03 11:33:53 +10:00
Zack Rusin
206eb50493
st/xorg: fix warnings
2009-09-02 18:39:21 -04:00
Zack Rusin
d6b58a97c2
st/xorg: handle xrender repeat modes
2009-09-02 18:38:23 -04:00
Zack Rusin
dc9de8064f
st/xorg: flip the coordinate system
2009-09-02 17:21:28 -04:00
Zack Rusin
d918896a75
st/xorg: handle solid fills in the fragment shader
2009-09-02 17:16:03 -04:00
Eric Anholt
cbde276580
Revert "i965: Use VBOs in the VBO module on 965, now that we have ARB_map_buffer_range."
...
This reverts commit 00413d8742 . Even with
fixes, using ARB_map_buffer_range in the VBO module isn't showing up as a
significant win, and some cases apparently regressed.
Bug #23624 .
2009-09-02 12:20:01 -07:00
Eric Anholt
ec32ef12b3
intel: Add support for FlushMappedBufferRange for ARB_map_buffer_range.
...
This should help for the usage by the VBO module, where we would upload
the whole remaining chunk of the buffer for a series of range maps that should
cover just a segment of it.
2009-09-02 12:20:00 -07:00
Eric Anholt
82313eed01
intel: Sync a synchronized READ_BIT map buffer range with GL drawing to it.
...
It's probably uncommon, but would obviously have gone wrong.
2009-09-02 12:20:00 -07:00
Eric Anholt
aecba6b1c8
intel: Move MapBufferRange mesa state setting up to cover the 915 case.
2009-09-02 12:20:00 -07:00
Jakob Bornecrantz
7d8f33590f
st/xorg: Guard against realy old versions of Xorg
2009-09-02 19:48:49 +02:00
Brian Paul
5e809216a8
Revert "mesa: fix the non-GNU C bit-field case"
...
This reverts commit 4b08e74982 .
Don't know what I was thinking there.
2009-09-02 10:38:46 -06:00
Brian Paul
4b08e74982
mesa: fix the non-GNU C bit-field case
2009-09-02 10:12:15 -06:00
Gary Wong
d98b9f4edb
mesa: silence gcc bit-field warning
2009-09-02 10:11:15 -06:00
Brian Paul
a7a3d3c271
mesa: replace 8 with NUM_UNITS
2009-09-02 09:43:10 -06:00
Brian Paul
8cb651578d
mesa: remove accidentally committed printf
2009-09-02 09:25:28 -06:00