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
d23b54a423
fix some FBO/texture queries (bug 15296)
2008-08-06 08:42:09 -06: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
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
Brian Paul
02d223a781
mesa: glsl: stop code emit after error is recorded
2008-08-04 17:14:48 -06:00
Brian Paul
1028458354
mesa: glsl: check that rhs of const var initializer is also const
2008-08-04 17:14:48 -06:00
Brian Paul
901c4db2ed
mesa: glsl: handle user-defined const vars in expression simplification
2008-08-04 17:14:48 -06:00
Brian Paul
26ec3780b8
mesa: glsl: fix initialize size error check
2008-08-04 17:14:48 -06:00
Brian Paul
e68a3ef1ef
mesa: glsl: added initializer size/type error checking
2008-08-04 17:14:48 -06:00
Brian Paul
7c59a2b5a2
mesa: glsl: only allow one #version directive
2008-08-04 17:14:48 -06:00
Brian Paul
d95bb24ddc
mesa: glsl: regenerated file
2008-08-04 17:14:48 -06:00
Brian Paul
012a1f1cf6
mesa: glsl: new bvec4 constructor
2008-08-04 17:14:48 -06:00
Jonathan White
73c3c4d1cc
egl: typedef u_int32_t for Windows
2008-08-04 16:30:58 -06:00
Jonathan White
655ca5afad
egl: fix _eglGlobal initialization for Windows
2008-08-04 16:30:04 -06:00
Michal Krol
2783f3bfab
tgsi: Put a newline after IMM.
2008-08-04 12:18:09 +02:00
Brian Paul
eb80ed0d2e
added null ptr check (fix bug 16959)
2008-08-03 11:14:47 -06:00
Younes Manton
4a8b908a46
softpipe: support PIPE_FORMAT_R16_SNORM.
2008-08-02 19:37:16 +02:00