Commit Graph

25860 Commits

Author SHA1 Message Date
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
Brian Paul 83e4470d9a mesa: added #ifdef __GNUC__ around GLubyte bitfield usage
It would be nice if there were a #pragma or something to disable the warnings:

main/texenvprogram.c:87: warning: type of bit-field ‘Source’ is a GCC extension
main/texenvprogram.c:88: warning: type of bit-field ‘Operand’ is a GCC extension

but there doesn't appear to be a way to do that.
2009-09-02 08:47:47 -06:00
Chris Wilson a46e32787d mesa: Compact state key for TexEnv program cache
By rearranging the bitfields within the key we can reduce the size
of the key from 644 to 196 bytes, reducing the cost of both the
hashing and equality tests.
2009-09-02 08:47:47 -06:00
Michel Dänzer c0cf0fd163 st/xorg: Remove code no longer support by xserver Git master.
Shouldn't be necessary with older versions either.
2009-09-02 16:01:21 +02:00
Michel Dänzer ea55f8ed8f st/xorg: Add support for xserver Git master DRI2 interface.
Reorganize to handle both interfaces with common code.
2009-09-02 16:00:30 +02:00
Michel Dänzer 0b26d97f4d st/dri: Slight consolidation of DRI2 buffer handling.
Always use / assume a combined depth/stencil buffer.

Also update drawable formats from surfaces returned by the driver.
2009-09-02 15:41:41 +02:00
Michel Dänzer 385620e5eb st/xorg: Add EXA UploadToScreen and DownloadFromScreen hooks. 2009-09-02 15:41:40 +02:00
Xiang, Haihao 98a8744e02 i965: CS FENCE in URB_FENCE is 11-bits wide 2009-09-02 13:28:32 +08:00
Xiang, Haihao f5539b6991 i965: validate sf state 2009-09-02 13:28:23 +08:00
Eric Anholt 60b08eb1fd mesa: Make MultiDrawElements submit multiple primitives at once.
Previously, MultiDrawElements just called DrawElements a bunch of times.
By sending several primitives down the pipeline at once, we avoid a bunch
of validation.  On my GL demo, this improves fps by 2.5% (+/- .41%) and
reduces CPU usage by 70.5% (+/- 2.9%) (n=3).

Reviewed by: Ian Romanick <ian.d.romanick@intel.com>
2009-09-01 20:35:19 -07:00
Ben Skeggs a82cd55a5c nv50: SWZ is the same as MOV from our perspective 2009-09-02 12:05:34 +10:00
Brian Paul 282f578dbd mesa: skip bitmap drawing code if width==0 or height==0 2009-09-01 17:40:07 -06:00
Brian Paul 29e22059a9 intel: use _mesa_expand_bitmap() to skip an intermediate buffer 2009-09-01 17:39:32 -06:00
Brian Paul d5b6dd0001 st/mesa: use new _mesa_expand_bitmap() function 2009-09-01 17:39:32 -06:00
Brian Paul 278e76832f mesa: new _mesa_expand_bitmap() function 2009-09-01 17:39:32 -06:00