Brian Paul
ea0007cc4c
softpipe: add texture border color code
2008-08-06 17:14:22 -06:00
Jonathan White
b908ce93d4
egl: define vsnprintf
2008-08-06 16:42:38 -06:00
Jonathan White
bd953fdd54
egl: fixes for Windows
2008-08-06 16:37:49 -06:00
Brian Paul
695fc32503
mesa: glsl: regenerated file
2008-08-06 16:29:50 -06:00
Brian Paul
35b9aedf7f
mesa: glsl: report 'Syntax Error' instead of 'Invalid external declaration'
2008-08-06 16:29:40 -06:00
Brian Paul
95d3642122
mesa: glsl: additional error checking
2008-08-06 16:29:10 -06:00
Brian Paul
8a40fe06d7
mesa: glsl: fix a number of glUniform issues
...
Additional error checking.
Allow setting elements of uniform arrays. This involves encoding both
a uniform location and a parameter offset in the value returned by
glGetUniformLocation().
Limit glUniform[if]v()'s count to the size of the uniform array.
When setting bool-valued uniforms, convert all float/int values to 0 or 1.
2008-08-06 16:26:47 -06:00
Jonathan White
7e2458c7b5
egl: fix version handling
2008-08-06 13:40:03 -06:00
Brian Paul
7a6eba54d0
mesa: glsl: fix glGetUniform for matrix queries
2008-08-06 13:07:09 -06:00
Brian Paul
18cd9c229a
mesa: glsl: fix error check in get_uniformfv()
2008-08-06 12:45:14 -06:00
Brian Paul
5fc6f6a33f
mesa: glsl: check for rect tex samplers
2008-08-06 12:21:25 -06:00
Brian Paul
ac553c6ce4
mesa: glsl: disallow initializers for varying vars
2008-08-06 11:58:52 -06:00
Brian Paul
acb81d0268
mesa: glsl: more type checking for attribute/varying/uniform vars/locals
2008-08-06 11:45:42 -06:00
Brian Paul
64a795d8e6
mesa: glsl: check that attribute vars are of float/vec/mat type
2008-08-06 11:22:36 -06:00
Brian Paul
b9be69b85e
mesa: glsl: more assignment type checking
...
Also that const declarations have initializers and that uniforms/samplers
can't have initializers.
2008-08-06 11:15:55 -06:00
Brian Paul
93ed8f9fc9
mesa: glsl: fix SLANG_OPER_VARIABLE_DECL type checking case
2008-08-06 11:15:42 -06:00
Haihao Xiang
8d1627c25a
mesa: glsl: count number of temp regs used
2008-08-06 09:05:09 -06:00
Brian Paul
523ee3ddbe
disable debug code accidentally enabled by prev commit
2008-08-06 09:02:39 -06:00
Haihao Xiang
5f46093938
mesa: glsl: count number of temp regs used
2008-08-06 09:01:34 -06:00
Brian Paul
fb71a48413
mesa: fix comment about texture targets (bug 17005)
2008-08-06 08:52:56 -06:00
Brian Paul
d23b54a423
fix some FBO/texture queries (bug 15296)
2008-08-06 08:42:09 -06:00
Brian Paul
f1e4ca776f
fix some FBO/texture queries (bug 15296)
2008-08-06 08:40:25 -06:00
Xiang, Haihao
c20a173656
i965: update TexSrcUnit for OPCODE_TXB
2008-08-06 14:17:08 +08:00
Brian Paul
efd730c5d3
mesa: glsl: code consolidation in _slang_gen_declaration()
2008-08-05 20:57:17 -06:00
Brian Paul
a4fad98dfb
mesa: glsl: disallow user-defined functions/vars prefixed with gl_
2008-08-05 20:57:17 -06:00
Brian Paul
6b888a10d3
mesa: glsl: additional type checking for assignments, inequalities
2008-08-05 20:57:17 -06:00
Brian Paul
bf3040d476
mesa: glsl: generate error for main(any args)
2008-08-05 20:57:17 -06:00
Jonathan White
ab0d13dd60
egl: changes for Windows
2008-08-05 19:22:09 -06:00
Jonathan White
240962faf7
egl: added snprintf, strcasecmp defines
2008-08-05 19:20:43 -06:00
Brian Paul
096b5fa524
mesa: glsl: regenerated file
2008-08-05 16:59:22 -06:00
Brian Paul
7a63e317d1
mesa: glsl: remove invalid use of f.x syntax where f is a float
2008-08-05 16:58:44 -06:00
Brian Paul
013de307ed
mesa: glsl: re-enable assignment type checking
2008-08-05 16:58:31 -06:00
Brian Paul
8abeeb35d3
mesa: glsl: regenerated files
2008-08-05 16:24:53 -06:00
Brian Paul
1308ca6d21
mesa: glsl: re-org of intermediate/temp storage
...
Simplify the code for allocating storage for intermediate results. Use fewer
temps in some cases.
Also, use new asm vec4_move intrinsic instead of regular assigments in various
constructors. For example:
float f;
vec3 v;
v.xyz = f;
is not legal GLSL, so do this instead:
__asm vec4_move v.xyz, f; // note: f will auto-expand into f.xxxx
Plus, fix assorted bugs in structure comparison.
2008-08-05 16:18:39 -06:00
Brian Paul
749c1b9fbe
mesa: glsl: disable broken assignment type checking for now
2008-08-05 11:13:51 -06:00
Jonathan White
2eb4f86785
egl: don't include stdint.h on Windows
2008-08-05 08:13:50 -06:00
Jonathan White
b51584184a
egl: typedef uint8_t for Windows
2008-08-05 08:12:38 -06:00
Xiang, Haihao
8e8019b49a
dri: Fix write/read depth buffer issue under 16bpp mode. See bug #16646
2008-08-05 11:34:26 +08:00
Xiang, Haihao
a3024caff1
i965: Use program->SamplerUnits[] to get the appropriate texture unit.
...
inst->TexSrcUnit is used as an index into program->SamplerUnits[] since
the commit ade508312c , and program->SamplerUnits
is a sampler-to-texture-unit mapping.
2008-08-05 10:18:56 +08:00
Brian Paul
2d8551b30f
mesa: glsl: check struct types in _slang_assignment_compatible()
2008-08-04 17:14:49 -06:00
Brian Paul
793bab2a36
mesa: glsl: varying vars can't be user-defined structs
2008-08-04 17:14:49 -06:00
Brian Paul
9564e58df0
mesa: glsl: regenerated files
2008-08-04 17:14:49 -06:00
Brian Paul
3b5f9588e7
mesa: glsl: added vec4(ivec4) constructor
2008-08-04 17:14:49 -06:00
Brian Paul
50ecc38545
mesa: glsl: if/while/do condition must be boolean
2008-08-04 17:14:49 -06:00
Brian Paul
f70f6e076c
mesa: glsl: additional type checking for ?: and = operators
2008-08-04 17:14:49 -06:00
Brian Paul
e194c457fd
mesa: glsl: don't allow comparision of arrays
2008-08-04 17:14:49 -06:00
Brian Paul
250910a59d
mesa: glsl: error on const-qualified array declarations
2008-08-04 17:14:49 -06:00
Brian Paul
b57c53b2bc
mesa: glsl: added null ptr check
2008-08-04 17:14:49 -06:00
Brian Paul
c610c0d77d
mesa: glsl: set literal_size for const vars
2008-08-04 17:14:49 -06:00
Brian Paul
95ecc33330
mesa: glsl: add missing code emit for struct/field
2008-08-04 17:14:48 -06:00