Commit graph

12262 commits

Author SHA1 Message Date
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
Brian
79d8e78442 New comments, replace //-style with /* */ 2007-10-27 09:43:28 -06:00
Brian
d75ff8447c indentation fixes 2007-10-27 09:38:41 -06:00
Brian
d7c189b854 s/GLbitfield/uint/ 2007-10-27 09:37:40 -06:00
Brian
e807b1900f remove #define MESA stuff 2007-10-27 09:36:43 -06:00
Brian
88c021a0d1 s/256/TGSI_EXEC_NUM_IMMEDIATES/ 2007-10-27 09:35:51 -06:00
Brian
0c2bcedf9a indentation fixes 2007-10-27 09:33:50 -06:00
Brian
6ada4e3a69 Comments about texture instructions and the src regs 2007-10-27 09:32:50 -06:00
Brian
f6a73c3f28 Remove remnants of softpipe_surface.
This is the last of the clean-up following the change which moved surface
allocation to the winsys layer.
2007-10-27 09:26:59 -06:00
Brian
4f24568dc7 Obsolete 2007-10-27 09:04:43 -06:00
Brian
ef6940f172 Move mesa_to_tgsi.[ch] to state_tracker 2007-10-27 09:03:15 -06:00
Brian
3cf6644c00 Move mesa_to_tgsi.[ch] into state tracker. 2007-10-27 09:02:40 -06:00
Brian
bafbfb4dce Fix up handling of immediate values for TGSI shaders.
Still disabled pending LLVM updates.
2007-10-26 19:31:35 -06:00
Brian
19710c95da turn off debug output 2007-10-26 19:29:38 -06:00
Brian
8fed2466e4 Re-implement GLSL texture sampler variables.
GLSL sampler variables indicate which texture unit to use for TEX instructions.
Previously, this was baked into the fragment/vertex program and couldn't be
readily changed once set.
Now, SamplerUnits[] array indicates which texture unit is to be used for
each sampler variable.  These values are set with glUniform1i().
This is extra state that must be passed to the fragment/vertex program
executor at runtime.
2007-10-26 19:19:51 -06:00
Zack Rusin
789d248558 Hold a stack of temporaries so that we can redeclare them
for all defined functions. Fixes crashes in function calls.
2007-10-26 19:12:56 -04:00
Brian
78c1f8b2de convert OPCODE_END -> TGSI_OPCODE_RET 2007-10-26 13:10:37 -06:00
Brian
f92083c338 if we hit RET w/ empty call stack, halt 2007-10-26 13:10:37 -06:00
Brian
6b30f3888e Initial support for immediate values in TGSI programs.
These can be evaluated at compile time.
Code disabled pending clarifications of TGSI immediate data structures.
2007-10-26 13:10:37 -06:00
Zack Rusin
67e4b82996 Get basic function calls working in the shaders. 2007-10-26 14:59:38 -04:00
Zack Rusin
56da35ef76 Fix swizzle fetching in tgsi_util_get_full_src_register_extswizzle. Shorten
the swizzle coding in LLVM compilation using it and fix some warnings.
2007-10-26 14:59:38 -04:00
Zack Rusin
61d998c966 Make ret part of the instruction block instead of implicitely
closing at the end of parsing.
2007-10-26 14:59:38 -04:00
Brian
e4f6f0ec02 surface_alloc() is now a winsys function.
This allows surfaces to be allocated without a rendering context.
A few loose ends to resolve, but in working condition.
2007-10-26 10:45:42 -06:00
José Fonseca
f7be1b419a Actually move region_alloc() and region_release() to intel_winsys. 2007-10-26 13:31:04 +01:00
Brian
ec85467457 clean-up, simplify some tile code, more to come 2007-10-25 20:35:23 -06:00
Brian
f684120417 Move region_alloc() and region_release() to pipe_winsys.
This allows regions to be allocated w/out a rendering context.
2007-10-25 20:35:23 -06:00
Brian
616112ea2e silence warning 2007-10-25 20:32:45 -06:00
Brian
ee80e0b620 Move the get/put_tile() functions to pipe_context.
The _rgba versions are temporary until the state tracker is updated.
2007-10-25 20:32:45 -06:00
Brian
afd19177e4 tex comments 2007-10-25 20:32:45 -06:00
Brian
aaac436c6c added some comments 2007-10-25 20:32:45 -06:00
Brian
3dde3715db update TILE_TOP/BOTTOM_* values to match softpipe 2007-10-25 20:32:45 -06:00
Brian
86f09fd1a7 s/GLfloat/float/, s/GLint/int/, etc 2007-10-25 20:32:45 -06:00
José Fonseca
18a22a4302 Briefly describe the buffer management interface. 2007-10-25 23:41:23 +01:00
José Fonseca
1d2ff452d4 Expand pkg-config flags before invoking the compiler.
This allows IDEs such as Eclipse to get the correct c-preprocessor flags used
from the build output.
2007-10-25 23:37:25 +01:00
José Fonseca
414a933ad2 Ignore generated files. 2007-10-25 23:25:02 +01:00