Commit graph

28425 commits

Author SHA1 Message Date
Andre Maasikas
10f5cff6ac r600: add support for FRAG_ATTRIB_PNTC 2009-12-15 09:46:49 +02:00
Andre Maasikas
0c046bec8f r600: add DDX DDY opcodes 2009-12-15 09:46:34 +02:00
Richard Li
18ebcfe393 r600 : add texture support for vertex shader. 2009-12-14 18:08:40 -05:00
Zack Rusin
3ff688ea29 tgsi: add properties and system value register
adds support for properties to all parts of the tgsi framework, plus
introduces a new register which will be used for system generated
values.
2009-12-14 16:35:09 -05:00
Maarten Maathuis
41b52aa336 nouveau: avoid running out of relocs
- Added flush notify functions for NV30 and NV40.
- Flushing mid frame will call flush notify, which will resubmit all
relocs.
- We don't try to recover from reloc failure yet.
2009-12-14 19:31:54 +01:00
Christoph Bumiller
2677f199a5 nv50: be more cautious about using reg_instance
Trying to free part of nv50_pc->reg_instances[] for an
nv50_reg representing an indirect constant resulted in
a segmentation fault.
2009-12-14 18:39:13 +01:00
Michal Krol
c14be63c56 tgsi/ureg: Add ureg_DECL_gs_input().
Allows one to declare GS input registers.
2009-12-14 17:29:58 +01:00
Christoph Bumiller
1778ddaf74 nv50: store immediates as uint32
Sometimes we want non-float immediates, hacking them into
floats isn't nice.

Sorry, this should have already been committed before.
2009-12-14 11:12:59 +01:00
Patrice Mandin
d4d880199e nouveau: nv50: Add missing ctor_immd_4u32 function 2009-12-13 20:09:33 +01:00
Maciej Cencora
e76bb2f337 r300: enable accelerated support for glCopyTexImage only under KMS 2009-12-13 17:22:33 +01:00
Maciej Cencora
8403df33e0 r300: fix regression introduced by da73c1ed
The 0 value is correct for I8 format.
2009-12-13 17:20:11 +01:00
Maciej Cencora
9d8501bf27 r300: fix glCopyTexSubImage
Need to properly setup colorbuffer when dst pitch != dst width.
2009-12-13 17:20:11 +01:00
Christoph Bumiller
079b670111 nv50: add proper zslice offset in miptree_surface 2009-12-13 14:39:19 +01:00
Christoph Bumiller
7b5a6fa0c8 nv50: use m2mf z pos instead of calculating offset manually 2009-12-13 14:39:19 +01:00
Christoph Bumiller
44d8c9add2 nv50: add craziness for non-constant TXB and TXL
If lod or bias can be non-constant across a quad of fragments,
we need to execute TEX separately for each value.
Don't ask why.
2009-12-13 14:39:19 +01:00
Patrice Mandin
b91503f457 Revert "nouveau: nv30: Disable swizzled surface usage if any dimension is 1 (Warsow creates a 1x1 front buffer)"
This reverts commit ec7844537e.
2009-12-12 23:15:08 +01:00
Patrice Mandin
ec7844537e nouveau: nv30: Disable swizzled surface usage if any dimension is 1 (Warsow creates a 1x1 front buffer) 2009-12-12 22:31:53 +01:00
Christoph Bumiller
d80778218d nv50: support TXB and TXL
... and don't set the 'live' flag for TEX anymore, we'd
have to know if results affect the inputs for another TEX,
and I'm not going to do that kind of analysis now.
2009-12-12 16:39:00 +01:00
Christoph Bumiller
b0036f391a nv50: add S8Z24 depth texture format too 2009-12-12 16:38:59 +01:00
Christoph Bumiller
cc0ffaba7d nv50: fix depth comparison func TSC bits
Unfortunately it seems that if depth comparison is
active and we read a 2D texture, i.e. provide only
2 inputs, the second is used for comparison ...
2009-12-12 16:38:59 +01:00
Christoph Bumiller
6a689783b9 nv50: add src_mask case for IF opcode 2009-12-12 16:38:59 +01:00
Christoph Bumiller
9f3644c423 nv50: plug memory leak in miptree creation/destruction
Keeping this dynamically allocated for texture arrays.
Since we don't use it to store zslice offsets anymore
it's either 1 or 6 integers (cube) ...
2009-12-12 16:38:59 +01:00
Christoph Bumiller
f7a9734492 nv50: use copies of tgsi src nv50_regs
So we can use the 'mod' member without concern
if a source is used multiple times in 1 insn.
2009-12-12 16:38:59 +01:00
Christoph Bumiller
6a15ec9141 nv50: support vertex program textures 2009-12-12 16:38:59 +01:00
Maciej Cencora
784cca9fa5 r300: disable blit debugging info 2009-12-12 00:52:52 +01:00
Maciej Cencora
6b8315494a r300: emit number of used colorbuffers to pass radeon cs checker 2009-12-12 00:52:52 +01:00
Maciej Cencora
dbd53f8f55 r300: setup render target format for r300/r400 cards too 2009-12-12 00:52:51 +01:00
Maciej Cencora
353966b2da r300: finish blit support for r300 2009-12-12 00:52:51 +01:00
Maciej Cencora
c1a7cc1e44 more blit fixes 2009-12-12 00:52:51 +01:00
Maciej Cencora
cd5f167353 blit WIP 2009-12-12 00:52:51 +01:00
Maciej Cencora
7255a5486d r300: use accelerated emit for CopyTex[Sub]Image functions 2009-12-12 00:52:51 +01:00
Maciej Cencora
a4df3f9227 r300: accelerated blit support 2009-12-12 00:52:51 +01:00
Maciej Cencora
0a0d410bdb r300: fix wrong assertion 2009-12-12 00:52:51 +01:00
Maciej Cencora
bd58253f67 r300: export translateTexFormat function 2009-12-12 00:52:51 +01:00
Maciej Cencora
9975c484ad r300: refactor PVS code and constants emission 2009-12-12 00:52:50 +01:00
Maciej Cencora
545a2f4f2d r300: refactor R500 fragment program emission 2009-12-12 00:52:50 +01:00
Maciej Cencora
05fae9fbf6 r300: refactor color buffer setup 2009-12-12 00:52:50 +01:00
Maciej Cencora
5ee270820b r300: use _mesa_meta_Clear for buffer clears 2009-12-12 00:52:50 +01:00
Maciej Cencora
da73c1ed41 r300: minor texture code refactoring 2009-12-12 00:52:50 +01:00
Brian Paul
4430a05a3a gallium: added comment for pipe_reference() return value 2009-12-11 16:50:25 -07:00
Brian Paul
9c01cf425f mesa: minor reformatting/rewrapping in dd.h 2009-12-11 16:42:31 -07:00
Brian Paul
56dce15dcc mesa: remove unused ctx->Driver.ActiveTexture() hook 2009-12-11 16:42:31 -07:00
Brian Paul
e24a8de8ba mesa: updated comment 2009-12-11 16:42:30 -07:00
Brian Paul
09aa984494 Revert "scons: Pass -fno-strict-aliasing to gcc."
This reverts commit a2937a2f4e.

Per Jose's comment, We don't want this on master.
2009-12-11 10:11:45 -07:00
Brian Paul
a087eb590d Merge branch 'mesa_7_7_branch'
Conflicts:
	src/gallium/state_trackers/xorg/xorg_xv.c
	src/mesa/drivers/dri/intel/intel_span.c
2009-12-11 10:04:07 -07:00
Brian Paul
e128cc205e Merge branch 'mesa_7_6_branch' into mesa_7_7_branch 2009-12-11 09:51:27 -07:00
Brian Paul
7d41b4248b docs: updated 7.6.1 relnotes with GLSL fixes 2009-12-11 09:41:34 -07:00
Brian Paul
d8f8eca9ef mesa: remove unnecessary loop in _mesa_remove_output_reads() 2009-12-11 09:40:33 -07:00
Brian Paul
b605f4ff11 Merge branch 'mesa_7_6_branch' into mesa_7_7_branch 2009-12-11 09:22:00 -07:00
Brian Paul
5076a4f53a mesa: check dst reg in _mesa_find_free_register()
If a register was only being used as a destination (as will happen when
generated condition-codes) we missed its use.  So we'd errantly return
a register index that was really in-use, not free.

Fixes bug 25579.
2009-12-11 09:16:27 -07:00