Ben Skeggs
40d7a87a8e
nv50: multiply polygon offset units by 2
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01 14:44:43 +10:00
Ben Skeggs
be68782d9a
nv50: sync textures with render targets ourselves
...
Port of the nvc0 commit doing the same.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01 14:44:43 +10:00
Ben Skeggs
79079141fa
nv50: move onto common linear buffer manager
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01 14:44:43 +10:00
Ben Skeggs
5c1c4f8593
nouveau: common linear buffer manager, ported from nv50/nvc0 drivers
...
nv50_resource is being called nv04_resource now temporarily, to avoid
a naming conflict with nouveau_resource from libdrm.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01 14:44:43 +10:00
Ben Skeggs
cd24fcedec
nouveau: create linear gart/vram mman in common screen init
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01 14:44:43 +10:00
Ben Skeggs
3a38a4b0a8
nouveau: fix fence_ref() where fence and *ref are the same fence
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01 14:44:43 +10:00
Ben Skeggs
d6bdf1f6ae
nouveau: fix compiler complaint
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01 14:44:42 +10:00
Ben Skeggs
2f30a5bdaa
nv50: make mm available as common code
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01 14:44:42 +10:00
Ben Skeggs
7a8ee058a8
nv50: move onto shared fence code
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01 14:44:42 +10:00
Ben Skeggs
5a0915870c
nouveau: move nv50/nvc0 fencing to common location, and modify slightly
...
Modified from original to remove chipset-specific code, and to be decoupled
from the mm present in said drivers.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01 14:44:42 +10:00
Ben Skeggs
48e191f90c
nv50-nvc0: set cur_ctx during init if none currently bound
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01 14:44:42 +10:00
Marek Olšák
ea4a19c392
r300g: fix RGTC2_SNORM
...
ATI engineers have probably chosen those sign bits by a dice roll.
2011-03-01 05:25:33 +01:00
Marek Olšák
66d5de74c4
r300g: reorder parts of translate_texformat
2011-03-01 05:25:33 +01:00
Alex Deucher
1dc204d145
r600g: truncate point sampled texture coordinates
...
By default the hardware rounds texcoords. However,
for point sampled textures, the expected behavior is
to truncate. When we have point sampled textures,
set the truncate bit in the sampler.
Should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=25871
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-28 22:01:59 -05:00
Zou Nan hai
6c324777a6
i965: bump VS thread number to 60 on SNB
...
Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
2011-03-01 10:39:35 +08:00
Marek Olšák
7a61957424
r300g: fix RGTC1_UNORM and RGTC2_UNORM
...
Signs don't work the way I'd like...
2011-03-01 03:24:55 +01:00
Dave Airlie
9c16fcc617
rgtc: shared the compressor code between signed/unsigned
...
No idea why I didn't do it like this the first time, but share
the code like other portions of mesa do using _tmp.h suffix
and some #defines for the types.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-01 11:57:51 +10:00
Brian Paul
7b3bec87df
vbo: silence unused var warning
2011-02-28 18:34:06 -07:00
Brian Paul
125b4ac7e6
softpipe: remove redundant draw_flush() call
...
We'll flush after the same-shader comparison.
2011-02-28 18:25:41 -07:00
Brian Paul
e6f3e24330
draw: setup pipe's draw pointer for the aapoint stage
...
The other draw stages like aaline and pstipple were already doing this.
If the driver used the aapoint stage but not the others it would crash
because of a null pipe->draw pointer.
2011-02-28 18:25:37 -07:00
Brian Paul
b70610b982
mesa: move PBO-related functions into a new file
2011-02-28 18:24:35 -07:00
Brian Paul
7d8db55148
mesa: always generate error in glColorTableParameter[fi]v()
...
These were only used by GL_SGI_texture_color_table, which is gone now.
2011-02-28 18:24:30 -07:00
Brian Paul
9d20849516
mesa: remove GL_SGI_texture_color_table support
...
It was only implemented in the swrast driver and probably not used by
any applications. A modern app would use a dependent/chained texture
lookup in the fragment shader.
2011-02-28 18:24:30 -07:00
Brian Paul
7e161bcf11
svga: add assertions in svga_shader_type()
2011-02-28 18:24:30 -07:00
Brian Paul
c6991433ef
mesa: consolidate framebuffer target lookup code
2011-02-28 18:24:25 -07:00
Brian Paul
fec26193fb
mesa: remove some old do-nothing code
2011-02-28 18:24:25 -07:00
Brian Paul
1f9a0a4e6e
mesa: reduce calls to _mesa_test_framebuffer_completeness()
...
when updating/validating framebuffer state. The _Status field is set
to zero when we need to recompute _Status. Otherwise, it's up to date.
2011-02-28 18:24:25 -07:00
Brian Paul
b0fceae22f
mesa: reduce calls to _mesa_test_framebuffer_completeness()
...
when doing glCopyTex[Sub]Image() and checking the source buffer's
completeness.
We only need to determine FBO completeness when the status is indeterminate.
2011-02-28 18:24:20 -07:00
Brian Paul
ca1b551562
mesa: s/mesaFormat/attFormat/
2011-02-28 18:23:23 -07:00
Marek Olšák
790c731409
r300g: set the correct HiZ clear value
2011-03-01 01:46:27 +01:00
Marek Olšák
4609be4410
r300g: update derived state before uploading vertex buffers
...
The function may invoke blitter, which invalidates vertex buffers.
2011-03-01 00:46:58 +01:00
Marek Olšák
fbedd9c73a
u_vbuf_mgr: compute user buffer size for instance data from instance_count
2011-03-01 00:46:58 +01:00
Marek Olšák
2f665885cd
r300g: fix printing whether Z compression is enabled
2011-03-01 00:46:58 +01:00
Marek Olšák
ebf69f2c50
r300g: disable HiZ permanently if the the depth function is inverted
...
Instead of temporarily.
The HiZ function (something like a depth function) is a property
of a HiZ buffer and can only be changed during HiZ clears.
2011-03-01 00:46:54 +01:00
Marek Olšák
d99ec708af
r300g: fix HiZ memory size computation and deciding when to use HiZ
...
I removed the HiZ memory management, because the HiZ RAM is too small
and I also did it in hope that HiZ will be enabled more often.
This also sets aligned strides to HIZ_PITCH and ZMASK_PITCH.
2011-03-01 00:23:11 +01:00
Alex Deucher
5f44fab5a6
r600g: add missing evergreen INT_TO_FLT to r600_bc_get_num_operands
...
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-28 17:21:26 -05:00
Dave Airlie
3f600047d9
rgtc: fix void pointer arith.
...
should fix scons build.
2011-03-01 06:47:00 +10:00
Kenneth Graunke
0a163cf56d
glsl: Enable GL_OES_texture_3D extension for ES2.
2011-02-28 10:35:57 -08:00
Kenneth Graunke
eb639349e2
glsl: Use reralloc instead of plain realloc.
...
Plugs a memory leak when compiling shaders with user defined structures.
NOTE: This is a candidate for the 7.9 and 7.10 branches.
2011-02-28 10:35:40 -08:00
Jerome Glisse
c33e091d17
r600g: indentation fixes
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2011-02-28 13:33:13 -05:00
Marek Olšák
ab824a0722
r300g: initialize SC_SCREENDOOR
2011-02-28 12:43:26 +01:00
Christoph Bumiller
f80c03e187
nv50: replace most of it with nvc0 driver ported to nv50
...
We'll have to do some unification now to reduce code duplication.
2011-02-28 12:41:09 +01:00
Marek Olšák
d1dbbf7bf4
r300g: disable hyper-z on rs6xx+
...
It doesn't work.
2011-02-28 12:28:07 +01:00
Vinson Lee
93893139a4
mesa: Add texcompress_rgtc.c to SConscript.
2011-02-27 23:17:49 -08:00
Dave Airlie
e107a3aa08
rgtc: update docs
2011-02-28 13:43:32 +10:00
Dave Airlie
83ebc01c1d
mesa/st: add RGTC format support.
...
this just adds a format check + format conversion.
2011-02-28 13:35:35 +10:00
Dave Airlie
903726d285
swrast: add RGTC support
2011-02-28 13:35:35 +10:00
Dave Airlie
8d47c91985
mesa: Add RGTC texture store/fetch support.
...
This adds support for the RGTC unsigned and signed
texture storage and fetch methods.
the code is a port of the DXT5 alpha compression code.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-02-28 13:35:34 +10:00
Dave Airlie
e792e79f5a
mesa: make_float_temp_image non-static
...
We need this to do signed stuff for RGTC.
2011-02-28 13:34:25 +10:00
Dave Airlie
e3709c26a6
rgtc: llvmpipe/softpipe refuse RGTC until u_format has support.
...
So far I haven't implemented the u_format code for these.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-02-28 13:34:25 +10:00