Commit graph

13619 commits

Author SHA1 Message Date
Brian
4901410293 gallium/i915: Use tgsi_scan_shader() to collect shader info
No longer use semantic info in pipe_shader_state.
Also, remove redundant semantic info from i915_fp_compile struct.
2008-02-26 10:47:42 -07:00
Brian
33d213b677 gallium: remove unused var 2008-02-26 10:44:44 -07:00
Brian
f74279002a gallium: added tgsi_shader_field to sp_fragment_shader
Use the shader semantic info from there, instead of from pipe_shader_state.
Carry this idea to draw module and other drivers...
2008-02-26 10:13:39 -07:00
Brian
1410b7bb50 gallium: collect more shader info in tgsi_scan_shader()
Now getting input/output semantic info so we can eventually remove those
fields from pipe_shader_state.
2008-02-26 10:12:17 -07:00
Brian
ecd50ef58b gallium: remove input_map[] from pipe_shader_state 2008-02-26 08:43:07 -07:00
Brian
232a41e19f gallium: disable debug code 2008-02-26 08:41:42 -07:00
José Fonseca
19f6e1a975 scons: Prefer MSVS 2003 (patch by Mark Mueller). 2008-02-26 23:59:53 +09:00
José Fonseca
6d336588ed scons: Properly generate PDB files on MSVC. 2008-02-26 23:06:09 +09:00
José Fonseca
bb68acbf8d gallium: Add missing copyright headers. 2008-02-26 23:06:09 +09:00
Michal Krol
ad6bb870de gallium: Fix build on Windows. 2008-02-26 11:49:25 +01:00
Zack Rusin
7838aaffdb implement cache limits for cso
by default set to 4096, which might be on the large side
2008-02-26 01:51:46 -05:00
Zack Rusin
e798510569 add an explicit callback decleration and use it to silence warnings 2008-02-26 01:51:46 -05:00
Zack Rusin
bf1c2f3602 hide cso cache definition and add some initial code for size limiting
the caches
2008-02-26 01:51:46 -05:00
Zack Rusin
6abb82da7e implement deleting of driver side cached state in cso's 2008-02-26 01:51:46 -05:00
Brian
08a5f49644 gallium: rewrite AA point fragment shader to use a CMP instruction instead of IF/ELSE/ENDIF
Allows the shader to work on i915 hardware.
2008-02-25 18:56:36 -07:00
Brian
ba376b3314 gallium/i915: plug in aapoint draw stage 2008-02-25 18:56:36 -07:00
Brian
f43c44b5c9 gallium/i915: Fix emit_hw_vertex(): need to use vinfo->src_index[] 2008-02-25 18:56:36 -07:00
Brian
7ed9beef5f gallium/i915: remove debug code 2008-02-25 18:56:36 -07:00
Brian
0235b32521 gallium/i915: fix i915_emit_texld() to handle swizzled texcoords
Allocate a temporary register, insert MOV instruction, etc.
2008-02-25 18:56:36 -07:00
Ian Romanick
2fc9d0ffac cell: Additional changes to match changes in draw/draw_vertex_shader.c 2008-02-25 16:18:08 -08:00
Ian Romanick
2efa7e9489 cell: Fix off-by-one error in spu_dcache_fetch_unaligned
This time the off-by-one error caused an extra qword to be fetched
under certain circumstances when the source ea was not qword aligned.
2008-02-25 16:18:08 -08:00
Ian Romanick
a63fd641a0 cell: Trivial compiler warning clean-ups. 2008-02-25 16:18:08 -08:00
Ian Romanick
fb68daceec Cell: Remove unnecessary include files 2008-02-25 16:18:08 -08:00
Ian Romanick
7976a084e7 Cell: Use multiple DMA tags for the dcache. 2008-02-25 16:18:08 -08:00
Brian
b02fc94834 gallium/i915: compute vertex size _after_ state validation in emit_prim().
Fixes crash when drawing aa lines.
2008-02-25 17:01:20 -07:00
Brian
bc3f2c908e Added line smooth test 2008-02-25 16:26:37 -07:00
Brian
09ba1dd4cc gallium: clamp line width when creating raster state object 2008-02-25 16:25:24 -07:00
Brian
99047e0968 gallium/i915: plug in aaline draw stage 2008-02-25 16:24:47 -07:00
Brian
92650aeadd gallium/i915: make sure state is up to date in i915_vbuf_render_get_vertex_info(), also disable bogus assertion 2008-02-25 16:22:58 -07:00
Brian
f41e957557 gallium/i915: need to recompute vertex info if vertex shader changes 2008-02-25 16:20:04 -07:00
Brian
b53110c789 gallium/i915: call draw_flush() in i915_flush() 2008-02-25 16:16:07 -07:00
Brian
cc0cf1154b gallium: fix bad ptr assignment 2008-02-25 15:34:46 -07:00
Brian
846b7fbc6c gallium/i915: use draw_find_vs_output() directly, fix broken fogcoords.
We now produce the correct 915 vertex layout regardless of the order in
which fragment shader inputs are declared.
2008-02-25 14:48:31 -07:00
Brian
c037b4d45a softpipe: use draw_find_vs_output() directly 2008-02-25 14:47:13 -07:00
Brian
d6c7f7e314 gallium: modify draw_find_vs_output() to search vertex shader outputs
This simplifies drivers using the draw module and removes the last dependency
on vertex-shader "internals".  Since the draw module is producing the
post-transformed vertices, it makes sense to ask it where specific vertex
attributes are located.

This could also simplify some things in the state tracker code for selection,
feedback, rasterpos...
2008-02-25 14:46:42 -07:00
Brian
ea02342c11 gallium/i915: Use hardware rendering, unless INTEL_SP env var is set 2008-02-25 11:21:03 -07:00
Brian
20839b37ed gallium/i915: added SGT/SLE opcodes 2008-02-25 11:13:58 -07:00
José Fonseca
e4e3008923 Make the pipe headers C++ friendly. 2008-02-25 20:05:41 +09:00
José Fonseca
c8b069cc1e Get more debugging info out of MSVC. 2008-02-25 17:55:45 +09:00
José Fonseca
2d38d1b300 Remove files of unsupported build systems. 2008-02-25 17:11:28 +09:00
José Fonseca
9bcc8ad0ca Update git ignores. 2008-02-25 17:05:15 +09:00
José Fonseca
2a0675eb75 Replace standand library functions by portable ones. 2008-02-25 16:39:39 +09:00
José Fonseca
b75706764b Add Zack's comments about CSOs. 2008-02-25 15:18:33 +09:00
José Fonseca
efd336887f Cleanup scons files. 2008-02-25 14:46:53 +09:00
José Fonseca
2bebeef81b Update some msvc compiler flags. 2008-02-24 17:58:18 +09:00
José Fonseca
fdcb9260ee Add new files. 2008-02-24 17:58:05 +09:00
José Fonseca
e70a431c3d A few more tweaks to get correct WINDDK compilation. 2008-02-24 16:43:07 +09:00
José Fonseca
7aadb475e5 gallium: Fix MSVC warnings. 2008-02-24 10:37:31 +09:00
Brian
012391357f gallium: disable early Z test if fragment shader contains KIL instruction.
Use tgsi_scan_shader() to determine if the fragment shader uses KIL or
writes fragment.z
2008-02-23 16:17:17 -07:00
Brian
35ca45daba gallium: added TGSI_FILE_COUNT 2008-02-23 16:15:54 -07:00