Commit graph

115447 commits

Author SHA1 Message Date
Corbin Simpson
b5246de562 Added OPCODE_ABS, slightly fixed ADD/SUB 2008-05-02 12:06:21 -07:00
Corbin Simpson
6e96ea535a Initial r5xx fragment program compiler support.
Includes fallback shader and a handful of working opcodes.
2008-05-02 12:06:21 -07:00
Corbin Simpson
c02d1863d1 Add chip id 71D5 (RV530 M66) to radeon_chipset.h 2008-05-02 12:06:21 -07:00
Dave Airlie
d06e61aa80 fixup r500 bits for renaming 2008-05-02 12:06:21 -07:00
Dave Airlie
a3996ba2d1 r500: fixup fake shader to keep gears going 2008-05-02 12:06:21 -07:00
Dave Airlie
8e33a83b68 r500: enable gb tiling for r5xx 2008-05-02 12:06:21 -07:00
Dave Airlie
70335540c6 r500: fixup support for emitting fragment program to hardware.
Also fixup the constant emission

this breaks glxgears from what I can see but its another step to correctness
2008-05-02 12:06:21 -07:00
Dave Airlie
14c3bdb3f7 r500: setup fragment program constant emission atom 2008-05-02 12:06:21 -07:00
Dave Airlie
e46c3d7bcf r300: add rv530 pci id for the t60p laptop 2008-05-02 12:06:21 -07:00
Dave Airlie
99e75135ee r300: this code really shouldn't be here.
For R500 just ignore it for now while I do something interesting like
run glxgears.
2008-05-02 12:06:21 -07:00
Dave Airlie
9d9f66cc8d mesa: cleanup state emission and rs for r500
trivial clear app now renders
2008-05-02 12:06:21 -07:00
Dave Airlie
a87914993d r500 RS unit setup 2008-05-02 12:06:21 -07:00
Dave Airlie
55418dc87d more r500 vs r300 kickin 2008-05-02 12:06:21 -07:00
Dave Airlie
2ffa112ed3 some basic r500 portage 2008-05-02 12:05:28 -07:00
Dave Airlie
cd66f0e2d9 r500: fragprog 2008-05-02 12:04:04 -07:00
Alex Deucher
1226aba119 R3/4/5: fix TCL on r5xx, cleanup PVS code 2008-05-02 13:56:56 -04:00
Brian Paul
99df379b2c gallium: set template.target = PIPE_TEXTURE_2D 2008-05-02 11:14:08 -06:00
Alex Deucher
25d9f2dd24 R300: fix VAP_OUTPUT_VTX_FMT_1 defines 2008-05-02 13:03:48 -04:00
Keith Whitwell
b2021e7c06 gallium: identify depth-stencil textures
And don't use the display-target path to allocate them.
2008-05-02 17:56:01 +01:00
Keith Whitwell
7849ccb2a7 brw: remove dead code 2008-05-02 17:55:22 +01:00
Alex Deucher
734ef96d5f R300: cleanup VAP_CLIP_CNTL 2008-05-02 12:48:39 -04:00
Brian Paul
ce50940173 gallium: minor code, comments clean-up 2008-05-02 10:43:29 -06:00
Brian Paul
479d19f5a2 gallium: in st_finalize_texture() check texture dimensions
Check dimensions in addition to target, format, etc.
Fixes a bug where we failed to detect a change in texture image sizes and
wound up using the old texture data.
2008-05-02 10:38:39 -06:00
Brian Paul
3d53d38d5e gallium: new debug code (disabled) 2008-05-02 10:37:20 -06:00
Alex Deucher
db1fc51ccc R300: clean up VAP_PROG_STREAM_CNTL* register usage 2008-05-02 12:29:40 -04:00
Keith Whitwell
5cb29dae06 i915: update to new display target allocation 2008-05-02 16:56:06 +01:00
Keith Whitwell
a73ae3d5eb gallium: Add texture usage flags, special-case allocation of display targets
For many envirionments it's necessary to allocate display targets
in a window-system friendly manner.  Add facilities so that a driver
can tell if a texture is likely to be used to generate a display surface
and if use special allocation paths if necessary.

Hook up softpipe to call into the winsys->surface_alloc_storage()
routine in this case, though we probably want to change that interface
slightly also.
2008-05-02 16:46:31 +01:00
Brian Paul
cc2af38f2a gallium: fix typos, comments, whitespace 2008-05-02 09:31:38 -06:00
Brian Paul
cff8d3bdcb gallium: remove ^M (CR) chars 2008-05-02 09:31:38 -06:00
Brian Paul
e9513bd403 gallium: code movement (XSHM code) 2008-05-02 09:31:38 -06:00
Brian Paul
522f11b632 set TextureID = NULL after deleting the array 2008-05-02 09:31:38 -06:00
Brian Paul
8a5bf456dc gallium: comments, clean-ups 2008-05-02 09:31:38 -06:00
Michel Dänzer
d4074c509b gallium: Reallocate pipe_texture in st_TexImage if the texture object was used.
Fixes problems with interleaved glTexImage and rendering calls.
2008-05-02 16:22:20 +01:00
Alan Hourihane
be8a42b4fc snprintf -> util_snprintf 2008-05-02 15:26:45 +00:00
Alex Deucher
45077fc323 Update comment 2008-05-02 10:54:20 -04:00
Alex Deucher
279ea105d8 R5xx: various updates
- fixup VAP_CNTL setup
- remove extra instruction in r5xx passthrough shader
- add notes about pipe config
2008-05-02 10:51:40 -04:00
Michal Krol
6c15a70b75 tgsi: Enable fast high precision rsqrt. 2008-05-02 16:12:55 +02:00
Keith Whitwell
17058e0746 tgsi: Implement fast rsqrtf. Not tested, inactive. 2008-05-02 16:02:18 +02:00
Keith Whitwell
4a15913208 gallium: remove usage of winsys->surface_alloc_storage from state tracker
Allocate a texture containing storage instead.

Also clean up ACCUM buffer allocation slightly -- drivers will need
some changes to texture allocation logic to accomodate the concept of
a texture that will only as image storage by the CPU, but it's cleaner
than it was.
2008-05-02 14:27:10 +01:00
Keith Whitwell
25d60838b5 gallium: fix build after merge 2008-05-02 12:17:11 +01:00
Keith Whitwell
c3a8a41faa Merge branch 'gallium-0.1' into gallium-tex-surfaces 2008-05-02 12:00:13 +01:00
Alan Hourihane
5e49037caa revert mode change back to 644 2008-05-02 10:34:58 +00:00
Alan Hourihane
7e4bc84dfc inline -> INLINE 2008-05-02 10:31:46 +00:00
Alan Hourihane
54507125e7 Some changed for non-C99 compilers 2008-05-02 10:30:34 +00:00
Keith Whitwell
731e7b961c re-add pipe_surface map/unmap inlines 2008-05-02 11:11:27 +01:00
Keith Whitwell
251db95945 cso: can memcmp-compare pipe_framebuffer_state now it includes fb dimensions 2008-05-02 11:11:27 +01:00
Michal Krol
a1cb0c2b91 tgsi: Do not assume IN and OUT registers are declared sequentially. 2008-05-02 11:13:58 +02:00
Michal Krol
36f93c5e51 tgsi: Fix build on Win32. 2008-05-02 10:20:53 +02:00
Michal Krol
9d151a2517 tgsi: Dump destination register modulate modifier. 2008-05-02 10:15:54 +02:00
Brian
869b0836c1 gallium: temporarily disable broken SSE2 code for ARL opcode 2008-05-01 18:56:20 -06:00