Commit graph

22586 commits

Author SHA1 Message Date
Michal Krol
1bf6af141f python/regress: Clean up driver clear() interface. 2009-04-04 21:16:37 +02:00
Michel Dänzer
eb168e26aa gallium: Clean up driver clear() interface.
Only allows clearing currently bound buffers, but colour and depth/stencil in
a single call.
2009-04-04 19:01:51 +02:00
Michel Dänzer
ba14b043bc gallium: Add utility helper for packing combined depth/stencil values. 2009-04-04 16:04:59 +02:00
Michal Krol
b0ce915186 python/regress: Remove trailing whitespace. 2009-04-04 13:42:31 +02:00
Michal Krol
4661817dac python/regress: Initial fragment shader test suite. 2009-04-04 13:35:53 +02:00
Michal Krol
2d8bf51ffc python/regress: Use X8R8G8B8 rendertarget in vertex shader test. 2009-04-04 13:35:51 +02:00
Corbin Simpson
024817649f radeon: A bit of indent and line break cleanup. 2009-04-04 02:43:09 -07:00
Corbin Simpson
48688e5e8f r300-gallium: Calculate vert shader inputs for HW TCL.
This is definitely not perfect.
2009-04-04 02:38:13 -07:00
Corbin Simpson
21f1cdbe07 radeon: If the CS emit fails, dump it to stderr. 2009-04-04 02:20:29 -07:00
Corbin Simpson
23639ddbae r300-gallium: Fix bad register write. 2009-04-04 02:19:48 -07:00
Corbin Simpson
5c50218d00 r300-gallium: Move swtcl_emit to render to reflect its true purpose. 2009-04-04 02:12:30 -07:00
Corbin Simpson
b7ffe1e876 Add scons build support for radeon/r300. 2009-04-04 00:36:05 -07:00
Corbin Simpson
d6fd672bf9 radeon: Fix compile warnings, compile errors. 2009-04-04 00:36:05 -07:00
Corbin Simpson
be1dbba0a4 r300-gallium: Clean up compile warnings and strict compile errors. 2009-04-04 00:36:04 -07:00
Corbin Simpson
a7dc04fa73 r300-gallium: r500 surface_copy fragment shader. 2009-04-04 00:36:04 -07:00
Brian Paul
4d363cc16d intel: #include texgetimage.h 2009-04-03 17:43:03 -06:00
Brian Paul
a4bec69e72 mesa: move glGetTexImage(), glGetCompresssedTexImage() code into new file 2009-04-03 17:42:22 -06:00
Brian Paul
c7eb423c49 mesa: remove the noClamp parameter to _mesa_pack_rgba_span_float()
It was only set to GL_TRUE in one place where it isn't really needed
(glGetTexImage(sRGB format)).
2009-04-03 17:28:35 -06:00
Brian Paul
35d88e1ac2 mesa: clamp colors to [0,1] for glGetTexImage() when format is GL_LUMINANCE
For luminance, we add R+G+B and it seems we should always clamp in case.
2009-04-03 17:10:31 -06:00
Brian Paul
b7cb6650c1 mesa: whitespace and comment clean-up 2009-04-03 16:51:04 -06:00
Brian Paul
a5ce781282 mesa: remove extra semicolons 2009-04-03 16:37:36 -06:00
Brian Paul
5d3b1494b6 softpipe: add additional surface formats in tile cache code 2009-04-03 15:43:13 -06:00
Brian Paul
80197a0c1b mesa: in mesa_add_named_constant(), avoid adding duplicate constants 2009-04-03 15:42:14 -06:00
Brian Paul
866bdd0509 mesa: fix parameter counting in ARB vertex/fragment program parsing
Duplicated unnamed constants were getting counted more than once.
2009-04-03 15:41:10 -06:00
Brian Paul
a4173956eb mesa: replace >= with > when testing if we've exceeded max local params
Now a program that uses 256 locals works as it should.
2009-04-03 13:48:43 -06:00
Brian Paul
ce461ffc5a mesa: only clear matrix MAT_DIRTY_INVERSE flag when we actually compute the inverse
If _math_matrix_analyse() got called before we allocated the inverse
matrix array we could lose the flag indicating that we needed to compute
the inverse.  This could happen with certain vertex shader cases.
2009-04-03 12:49:03 -06:00
Brian Paul
b8a200ac9d mesa: for OPCODE_LIT, use _mesa_pow() instead of exp() and log()
Also, s/pow/_mesa_pow/
2009-04-03 11:06:27 -06:00
Michal Krol
a7b6a28b0c python/regress: Use A8R8G8B8 rendertarget format. 2009-04-03 18:55:28 +02:00
Brian Paul
7391ba1e9d mesa: rename some gl_light fields to be clearer
EyeDirection -> SpotDirection
_NormDirection -> _NormSpotDirection
2009-04-03 10:09:28 -06:00
Brian Paul
650d147289 mesa: don't normalize spot light direction until validation time
In glLight() we're only supposed to transform the direction by the modelview
matrix, not normalized it too.
2009-04-03 10:09:27 -06:00
Michal Krol
be4c2d9a33 python/regress: vertex shader srcmod swz test does not use TEMP[0]. 2009-04-03 17:55:21 +02:00
Michal Krol
e3d5e0aead tgsi/exec: Actually enable switch-case for FLR. 2009-04-03 17:26:01 +02:00
Brian Paul
cbd305394a i965: remove unused var 2009-04-03 09:08:00 -06:00
Brian Paul
29ae40f5dc glx: remove unused local var in determineTextureFormat() 2009-04-03 09:07:04 -06:00
Brian Paul
5c5d78e191 mesa: replace assertion with conditional in _mesa_opcode_string() 2009-04-03 09:07:04 -06:00
Brian Paul
0139637975 i965: more const buffer debug code 2009-04-03 09:07:04 -06:00
Brian Paul
21982a2cd5 i965: added brw_same_reg() 2009-04-03 09:07:04 -06:00
Brian Paul
a330a6fcd0 i965: s/GL_FALSE/BRW_COMPRESSION_NONE/ 2009-04-03 09:07:04 -06:00
Brian Paul
1e299ff828 i965: another checkpoint commit of new constant buffer support
Everything is in place now for using a true constant buffer for GLSL fragment
shaders.  Still some bugs to find though.
2009-04-03 09:07:04 -06:00
Brian Paul
30adf05181 i965: fix response length param in brw_dp_READ_4()
We were accidentally clobbering the next register.
2009-04-03 09:07:04 -06:00
Brian Paul
3423986243 i965: change args to get_src_reg() to prep for new constant buffer support 2009-04-03 09:07:04 -06:00
Brian Paul
597cd5b94e i965: check-point commit of new constant buffer support
Currently, shader constants are stored in the GRF (loaded from the CURBE
prior to shader execution).  This severly limits the number of constants
and temps that we can support.

This new code will support (practically) unlimited size constant buffers
and free up registers in the GRF.  We allocate a new buffer object for the
constants and read them with "Read" messages/instructions.  When only a
small number of constants are used, we can still use the old method.

The code works for fragment shaders only (and is actually disabled) for now.
Need to do the same thing for vertex shaders and need to add the necessary
code-gen to fetch the constants which are referenced by the shader
instructions.
2009-04-03 09:07:04 -06:00
Brian Paul
ba8b25a46c i965: remove unused code for sampling a constant buffer 2009-04-03 09:07:04 -06:00
Brian Paul
8c093a1fb0 i965: code to setup a constant buffer sampler
This code won't actually be used and will be removed in a subsequent commit.
Just committing for posterity.
2009-04-03 09:07:04 -06:00
Brian Paul
a9c62a2340 i965: do negation and Abs in get_src_reg_imm()
Fixes regression seen with progs/glsl/bump.c
2009-04-03 09:07:04 -06:00
Brian Paul
5f1ce6b87e i965: comments 2009-04-03 09:07:03 -06:00
Brian Paul
ed8f54aa65 i965: code to debug/dump instruction immediates 2009-04-03 09:07:03 -06:00
Brian Paul
1ee0e22646 i965: minor code movement, new comment 2009-04-03 09:07:03 -06:00
Brian Paul
8127e49b93 i965: added new brw_dp_READ_4() function
Used to read float[4] vectors from the constant buffer/surface.
2009-04-03 09:07:03 -06:00
Brian Paul
6b18a8d3e7 i965: new and updated comments 2009-04-03 09:07:03 -06:00