Vinson Lee
8829e0c3f3
swrast: Clean up header file inclusion in ss_context.h.
...
Remove mtypes.h and swrast_setup.h.
Include glheader.h for GL symbols.
2010-08-12 23:51:16 -07:00
Vinson Lee
db0c6810f9
mesa: Include missing header in programopt.h.
...
Include mtypes.h for GLcontext and gl_register_file symbols.
2010-08-12 23:28:25 -07:00
Marek Olšák
bac59b336b
r300g: do not support separate depth/stencil clear in the driver
...
It doesn't work well with Hyper-Z, so put the burden on the state tracker.
2010-08-13 08:23:06 +02:00
Marek Olšák
aa6bdd38af
r300g: fix fastfill when color and Z clear are invoked separately
...
This always restores the previous depth clear value after CBZB clear.
2010-08-13 04:41:38 +02:00
Marek Olšák
4985ce1755
r600g: update shader caps
...
Sent on ML by Владимир.
These values are what fglrx returns.
2010-08-13 03:28:35 +02:00
Ian Romanick
0dc39f481a
glsl2: Use MIN2 from macros.h instead of open coding it
2010-08-12 18:01:14 -07:00
Marek Olšák
16e782b83f
r300g: disable depth clamp for now
...
It breaks Regnum Online in that it renders random triangles
all over the screen.
https://bugs.freedesktop.org/show_bug.cgi?id=29518
2010-08-13 02:59:01 +02:00
Vinson Lee
06928ba3c3
mesa: fpclassify is available with MinGW.
...
This patch fixes the MinGW build.
2010-08-12 17:37:00 -07:00
Dave Airlie
527ac905f6
r600g: fix warning in the winsys
2010-08-13 10:22:46 +10:00
Dave Airlie
f2804e7062
r600g: fix memory leaks running gears.
...
I noticed gears memory usage was heading skywards, some r600 "states"
aren't properly refcounted, and the ctx->state is never freed.
2010-08-13 10:22:46 +10:00
Vinson Lee
26c042c30a
translate_test: Fix compilation with MSVC.
2010-08-12 17:12:56 -07:00
Vinson Lee
ca70bf8c9d
scons: Add main/querymatrix.c to SCons build.
...
Commit 87eb667759 added querymatrix.c to
make but not to SCons.
2010-08-12 16:34:22 -07:00
Ian Romanick
261bbc011d
glsl2: Use Elements from main/compiler.h instead of open-coding
2010-08-12 15:05:39 -07:00
Brian Paul
c59c6c0122
glsl: print to stderr like other program printing code
2010-08-12 16:00:03 -06:00
Brian Paul
2d83e3fa0d
mesa: check for null shader->InfoLog before printing
2010-08-12 16:00:01 -06:00
Vinson Lee
56450d5f11
mesa: Fix FreeBSD build with llvm enabled.
...
On FreeBSD LC_CTYPE_MASK is not available but 'llvm-config --cppflags'
adds the compiler flag -D_GNU_SOURCE to the build.
2010-08-12 14:54:30 -07:00
Luca Barbieri
b9abe7f62c
translate_test: fix compilation on non-POSIX platforms
...
Use a kludgy function based on rand() instead of drand48()
2010-08-12 22:10:09 +02:00
Ian Romanick
4ca4edd20e
glsl2: Commit generated file changed by previous commit
2010-08-12 10:09:05 -07:00
Ian Romanick
188f60fb05
glsl2: Add missing include of string.h
...
Makes the build happy on non-GCC platforms.
2010-08-12 10:09:05 -07:00
Luca Barbieri
4d946c4e8a
translate_test: improve
...
1. Generate random data specifically for float and doubles, so that
they end up in [0, 1] range
2. Don't test useless conversions like SCALED <-> NORM
3. Poison the buffers before testing
2010-08-12 18:36:21 +02:00
Jakob Bornecrantz
4f51762b07
gallium: Link DRI drivers with g++ and test with CXX
...
New shader compiler need libc++ runtime. This works already if
we are using llvm so this just covers the !llvm case.
2010-08-12 16:04:11 +01:00
Marek Olšák
f668ea11bd
Revert "u_blitter: unify clear_depth_stencil and flush_depth_stencil"
...
This reverts commit de4784e365 .
2010-08-12 13:35:16 +02:00
Andre Maasikas
e62e5b0922
r600: add support for draw_elements_base_vertex
...
use VTX_BASE_VTX_LOC for offset, last time using INDEX_OFFSET was
probably a wrong register for this
2010-08-12 12:44:10 +03:00
Vinson Lee
17bcfaa475
mesa: Clean up header file inclusion in prog_uniform.h.
...
Remove mtypes.h.
Remove prog_statevars.h.
Include glheader.h for GL symbols.
2010-08-12 00:33:48 -07:00
Vinson Lee
791d7d4bf9
mesa: Include missing headers in prog_print.h.
...
Include stdio.h for FILE symbol.
Include glheader.h for GL symbols.
Include mtypes.h for GLcontext symbol.
Add forward declarations.
2010-08-12 00:27:01 -07:00
Vinson Lee
991a24d033
mesa: Include missing header in prog_optimize.h.
...
Include mtypes.h for GLcontext symbol.
2010-08-12 00:18:33 -07:00
Dave Airlie
582129ced6
r600g: fix typo in stencil translate.
...
fixes piglit stencil-twoside and stencil-wrap
2010-08-12 16:32:19 +10:00
Dave Airlie
13bc2098ca
r600g: fix provoking-vertex piglit test.
2010-08-12 16:29:04 +10:00
Dave Airlie
e2df0a8b23
r600g: improve texture format checker.
...
This takes the r300g texture format checker and fixes it up for r600g,
it passes glean texSwizzle, pixelformats, and texture_srgb tests,
however I think it L8S8_SRGB is broken as is L8_SRGB, need to investigate.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-08-12 16:20:31 +10:00
Marek Olšák
de4784e365
u_blitter: unify clear_depth_stencil and flush_depth_stencil
...
No need to enable depth test for clear.
2010-08-12 06:21:24 +02:00
Vinson Lee
e1bb9ee7a6
scons: Fix freebsd8 build.
2010-08-11 18:57:27 -07:00
Vinson Lee
4a859cd12f
scons: Add freebsd8 to list of accepted platforms.
2010-08-11 17:58:06 -07:00
Ian Romanick
5a805079a8
glsl2: Change command line options passed to flex
...
Remove --never-interactive because it is already specified in the
source using %option. Use -o instead of --outfile. Some of the
%option commands may also need to be removed for compatibility with
older versions (e.g., 2.5.4) of flex.
This should fix bugzilla #29209 .
2010-08-11 17:21:53 -07:00
Ian Romanick
a43871f763
glsl2: Commit generated files changed by previous commit
2010-08-11 17:21:53 -07:00
Ian Romanick
2fb94b37d2
glsl2: Use bison command line option to set prefix
...
Bison version 2.3 doesn't seem to support %name-prefix in the source.
This should fix bugzilla #29207 .
2010-08-11 17:14:02 -07:00
Ian Romanick
db36e88052
glsl2: Commit generated files changed by previous commit
2010-08-11 17:03:37 -07:00
Ian Romanick
77215e7e7b
glsl2: Emit error from lexer when illegal reserved word is encountered
...
Without this, the parser will generate obtuse, useless error
diagnostics when reservered word that are not used by the grammar are
encountered in a shader.
Fixes bugzilla #29519 .
2010-08-11 17:03:31 -07:00
Ian Romanick
202604e816
glsl2: Don't declare a variable called sig that shadows the other one
...
Accidentally having a variable called 'sig' within an if-statement
cause the higher scope 'sig' to always be NULL. As a result a new
function signature was created for a function definition even when one
already existed from a prototype declaration.
Fixes piglit test case glsl-function-prototype (bugzilla #29520 ).
2010-08-11 16:58:25 -07:00
Marek Olšák
608f168709
r300/compiler: remove an unused variable
2010-08-12 00:39:04 +02:00
Carl Worth
da6b10a7eb
glcpp: Fix "unterminated if" diagnostic.
...
This was previously being appended to the output string *after* a copy
of the supposedly final string was made and handed to the caller. So
the diagnostic was never actually visible to the user.
We fix this by moving the check for an unterminated #if from
glcpp_parser_destroy to the calling function, preprocess.
This fixes the test case 083-unterminated-if.c.
2010-08-11 14:38:04 -07:00
Carl Worth
6b9e7b034c
glccp: Regenerate glcpp-parse.c
...
Due to a recent change to glcpp-parse.y.
2010-08-11 14:38:04 -07:00
Carl Worth
253cad3f42
glcpp: Add an explicit diagnostic for #if with no expression.
...
This is more clear than the previously-generated diagnostic which was
something confusing like "enexpected newline".
This change makse test 080-if-witout-expression.c now pass.
2010-08-11 14:38:04 -07:00
Carl Worth
624dd585c7
glcpp: Reword diagnostic for #elif with no expression
...
Rather than telling the user what to fix, the standard convention is to
describe what the detected problem is. With this change, test
081-elif-without-expression now passes.
2010-08-11 14:38:03 -07:00
Carl Worth
cb5ea0c79b
glcpp: Add several tests for diagnostics.
...
Which are proving to be useful since some of these tests are not yet
acting as desired, (in particular, the unterminated if test is not
generating any diagnostic).
2010-08-11 14:38:03 -07:00
Carl Worth
5a6285cc86
glcpp: Regenerate glcpp-lex.c
...
After a recent change to glcpp-lex.l
2010-08-11 14:38:03 -07:00
Carl Worth
bc64b89808
glcpp: Initialize line and column numbers to 1, not 0.
...
Error messages make more sense this way since the convention is for
the first line of a file to be numbered from 1, rather than 0.
2010-08-11 14:38:03 -07:00
Carl Worth
2bcff4c879
glcpp-test: Capture the stderr output of the preprocessor.
...
This allows writing tests that verify diagnostics from the preprocessor.
2010-08-11 14:38:03 -07:00
Brian Paul
dcb3a2899e
configs: added -ltalloc to config files
2010-08-11 15:06:13 -06:00
Brian Paul
9b2d3c3285
osmesa: link with new libglsl.a lib
2010-08-11 15:06:13 -06:00
Brian Paul
9f9386d22a
glsl2: added casts to silence warnings
2010-08-11 15:06:13 -06:00