Commit graph

12296 commits

Author SHA1 Message Date
Zack Rusin
a6a3d8cb75 Remove conditionals from the makefiles. 2007-10-29 16:14:10 +00:00
Zack Rusin
a70c5e37f1 Remove typedefs from enums.
typedefs are rather evil, remove them and use the enum
keyword explicitely.
2007-10-29 16:14:10 +00:00
Zack Rusin
25b17b213b Refactor the LLVM code a bit.
Move the CPU vertex shader execution code to the draw
module, remove traces of LLVM from the state tracker,
abstract execution engine for the purposes of the draw module.
2007-10-29 16:14:10 +00:00
Zack Rusin
abe8cd1917 Make sure the swizzling vector is being recreated for each function. This makes
GLSL bricks work.
2007-10-29 16:14:10 +00:00
Michal Krol
3b25ce9eca Add SSE dump facilities.
Wrap x86_, sse_ and sse2 rtasm calls in emit_ calls.
Those emit_ calls, if required, dump instructions to stdout.
SSE dumping disabled by default.
2007-10-29 13:25:00 +00:00
Michal Krol
1eabc29ed1 Code re-org. Add comments. 2007-10-29 13:25:00 +00:00
Michal Krol
bd922c6437 Implement RET opcode. 2007-10-29 13:25:00 +00:00
Michal Krol
e15ca7963e Remove TGSI_INTERPOLATE_ATTRIB. 2007-10-29 13:25:00 +00:00
José Fonseca
242b8659e4 Fix i915simple build. 2007-10-29 12:29:06 +00:00
José Fonseca
1039a75514 Reuse hardware vertice representation. 2007-10-29 12:15:57 +00:00
José Fonseca
a9e1fcf98a Enable the vertex buffer stage according to the I915_VBUF environment var. 2007-10-29 12:15:57 +00:00
José Fonseca
46aeff5814 Get vertex buffer stage in a minimally working state. 2007-10-29 12:15:57 +00:00
José Fonseca
02091e0f9c Reserve the accurate number of dwords in the batch buffer. 2007-10-29 12:15:57 +00:00
José Fonseca
dbb33a9710 Start a vertex buffer constuction stage for i915 based on Keith's draft done on softpipe. 2007-10-29 12:15:57 +00:00
Michal Krol
af5061cf5a Fix newlines. 2007-10-29 11:03:37 +00:00
Michal Krol
c1b9f0eb7a Remove unused static functions. 2007-10-28 17:53:02 +00:00
Michal Krol
2bbd714fda Update comments. 2007-10-28 17:48:46 +00:00
Michal Krol
3c81219672 Replace supported_formats with is_format_supported interface.
The old supported_formats interface returned a list of formats
supported by a pipe/winsys implementation. This was reasonable
when gallium had a fixed list of predefined format.
Now things has changed and the definition of PIPE_FORMAT is
more flexible.
The new shiny is_format_supported interface gets PIPE_FORMAT
as an argument and returns a boolean whether this particular
format is supported.
2007-10-28 17:34:39 +00:00
Michal Krol
b85cd7b700 Use FREE and MALLOC instead of free and malloc. 2007-10-28 17:34:36 +00:00
Michal Krol
2953415223 Rework sse-utility function calls. 2007-10-28 17:34:35 +00:00
michal
c5ad88e9f1 Declare temporaries in a more compact fashion.
The following declarations:
   DCL TEMP[0]
   DCL TEMP[1]
   DCL TEMP[2]
   DCL TEMP[4]
become:
   DCL TEMP[0..2]
   DCL TEMP[4]
2007-10-28 17:34:33 +00:00
michal
e420e9d485 Declare temporaries in a more compact fashion.
The following declarations:
   DCL TEMP[0]
   DCL TEMP[1]
   DCL TEMP[2]
   DCL TEMP[4]
become:
   DCL TEMP[0..2]
   DCL TEMP[4]
2007-10-28 16:53:11 +00:00
michal
80ab2ab335 Control FS TGSI dumping with GALLIUM_DUMP_FS env variable. 2007-10-28 16:53:11 +00:00
michal
90e47c8c7b Fix newlines. 2007-10-28 16:53:11 +00:00
michal
f93b9dc09a Use FREE instead of free. Fix newlines. 2007-10-27 19:04:20 +01:00
michal
a846d7d027 Enable SSE path. 2007-10-27 19:04:19 +01:00
michal
a1b4285c5c Fix fragment shader. 2007-10-27 19:04:19 +01:00
michal
9c22f91030 Optimize fragment program. 2007-10-27 19:04:19 +01:00
michal
f16f23b3ab Use PIPE_FORMAT in state tracker.
Fix PIPE_FORMAT field encoding.
Re-implement st_get_format_info.
2007-10-27 19:04:19 +01:00
michal
d8b59ba177 Refactor supported format queries. 2007-10-27 19:04:19 +01:00
michal
205d4e4900 Respect use_sse flag. 2007-10-27 19:04:19 +01:00
michal
9dfc27edf1 Fix SSE bug. 2007-10-27 19:04:19 +01:00
michal
478b5692de Add #ifs. 2007-10-27 19:04:19 +01:00
michal
b23350700e vertex_element::src_format needs 32 bits. 2007-10-27 19:04:19 +01:00
michal
f27dcb51f7 Respect use_sse flag. 2007-10-27 19:04:19 +01:00
michal
e9ce69b1c9 Remove PIPE_FORMAT_COUNT references. 2007-10-27 19:04:18 +01:00
michal
1ab8f6e696 Enable SSE2 for fragment shaders. 2007-10-27 19:01:12 +01:00
michal
31b4b26108 Enable SSE2 for vertex shaders. 2007-10-27 19:01:12 +01:00
michal
7362fe5d16 Fix YCBCR macro.
Fix line endings.
2007-10-27 19:01:11 +01:00
michal
bf229cb6f1 Fix alignment problems.
Remove NOP opcode.
TEX opcode returns solid white (a hack for D3D state tracker).
2007-10-27 19:01:11 +01:00
michal
9053fcabcb Remove GL dependencies. 2007-10-27 19:01:11 +01:00
michal
6961769cb2 Define destroy method called by softpipe's destructor. 2007-10-27 19:01:11 +01:00
michal
dee9406e48 Silence compiler warnings. 2007-10-27 19:01:11 +01:00
michal
187c164bb6 Silence compiler warnings. 2007-10-27 19:01:11 +01:00
michal
3755840e00 Call quad stage destructors. 2007-10-27 19:01:11 +01:00
michal
21b5ff5dcc Remove llvm and sse2 dependencies. 2007-10-27 19:01:10 +01:00
michal
26df9d1a30 Move format definitions from p_defines.h to p_format.h.
PIPE_FORMAT is not an ordinary enum -- it encodes its
format description in the value that defines it.
2007-10-27 19:01:10 +01:00
michal
bc99ea96fb Add sse2_program to draw_vertex_shader. 2007-10-27 19:01:10 +01:00
michal
11a19866f6 Silence compiler warnings. 2007-10-27 19:01:10 +01:00
michal
0e96a53aec Remove llvm dependencies. 2007-10-27 19:01:10 +01:00