BindBuffer* functions are part of tfb extension. They are however
used by others extensions such as uniform buffer object.
This patch moves the BindBuffer* definition to to bufferobj.c
where it acts as a dispatcher calling original tfb function ;
BindBuffer* functions can be used by
BindBuffer* functions are part of tfb extension. They are however
used by others extensions such as uniform buffer object.
This patch moves the BindBuffer* definition to to bufferobj.c
where it acts as a dispatcher calling original tfb function ;
BindBuffer* functions can be used by
blinking-teapot is an UBO demo.
---
src/glsl/CMakeLists.txt |1 +
src/glsl/Makefile.am |2 +
src/glsl/blinking-teapot.c| 207 +
src/glsl/blinking-teapot.frag | 31 ++
src/glsl/blinking-teapot.vert | 16 +++
5 files chan
blinking-teapot is an UBO demo.
---
src/glsl/CMakeLists.txt |1 +
src/glsl/Makefile.am |2 +
src/glsl/blinking-teapot.c| 177 +
src/glsl/blinking-teapot.frag | 31 +++
src/glsl/blinking-teapot.vert | 16
5 files ch
blinking-teapot is an UBO demo.
---
src/glsl/CMakeLists.txt |1 +
src/glsl/Makefile.am |2 +
src/glsl/blinking-teapot.c| 233 +
src/glsl/blinking-teapot.frag | 31 ++
src/glsl/blinking-teapot.vert | 16 +++
5 files chan
blinking-teapot is an UBO demo.
---
src/glsl/CMakeLists.txt|1 +
src/glsl/Makefile.am |2 +
src/glsl/blinking-teapot.c | 233
src/glsl/shader.frag | 31 ++
src/glsl/shader.vert | 16 +++
5 files changed, 283 ins
ureg_DECL_constant2D does not return anything.
---
src/gallium/auxiliary/tgsi/tgsi_ureg.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c
b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
index cada435..5d8dbba 100644
--- a/src/gallium/
This patch adds a 2d ureg_src constructor, and add a field in
st_src_reg inside glsl_to_tgsi that hold potential 2d index.
2d indexing is required at least for uniform buffer object
support
---
src/gallium/auxiliary/tgsi/tgsi_ureg.h | 12
src/mesa/state_tracker/st_gl
---
src/mesa/main/api_exec.c |2 +
src/mesa/main/bufferobj.c | 48 +
src/mesa/main/bufferobj.h | 12 +
src/mesa/main/transformfeedback.c | 22
src/mesa/main/transformfeedback.h |8 +++---
5 files ch
---
src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 22 +++---
1 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index 3fbb0cd..63975a4 100644
--- a/src/mesa/state_tracker/st_glsl_
---
src/mesa/main/bufferobj.c |2 +
src/mesa/main/uniforms.c | 187 +
src/mesa/main/uniforms.h | 15
3 files changed, 204 insertions(+), 0 deletions(-)
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index c453f9c..cddb0
v2 :
- Fix format issue thank to Brian Paul comments.
- UBOs are now sent to program correctly.
---
src/glsl/linker.cpp | 192 ++-
1 files changed, 191 insertions(+), 1 deletions(-)
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
in
---
src/glsl/ast.h | 23 ++
src/glsl/ast_to_hir.cpp | 64 -
src/glsl/glsl_parser.yy | 157 ++-
src/glsl/glsl_parser_extras.cpp |5 +
src/glsl/glsl_parser_extras.h |7 ++
src/mesa/program/ir_to_m
---
src/glsl/ir.cpp|1 +
src/glsl/ir.h |7 +++
src/glsl/ir_clone.cpp |1 +
src/glsl/opt_dead_code.cpp |6 ++
4 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp
index 41ed4f1..8638bb6 100644
--- a/s
---
src/mesa/main/config.h |5
src/mesa/main/mtypes.h | 51 +++
src/mesa/main/shaderobj.c | 10 +++
src/mesa/program/prog_uniform.h |1 +
4 files changed, 67 insertions(+), 0 deletions(-)
diff --git a/src/mesa/main/c
---
src/glsl/glsl_lexer.ll |3 ++-
src/glsl/glsl_parser_extras.cpp |1 +
src/glsl/glsl_parser_extras.h |2 ++
3 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/glsl/glsl_lexer.ll b/src/glsl/glsl_lexer.ll
index cfd8926..a091f62 100644
--- a/src/glsl/glsl_lexe
---
src/mapi/glapi/gen/ARB_Uniform_Buffer_Object.xml | 115 ++
src/mapi/glapi/gen/Makefile |1 +
src/mapi/glapi/gen/gl_API.xml|2 +-
3 files changed, 117 insertions(+), 1 deletions(-)
create mode 100644 src/mapi/glapi/gen/ARB_U
Hi,
I updated coding style thank to Bryan Paul comments.
Besides there are additional work on the API implementation
(although it is still uncomplete) ; the parser should now handles
default UBO layout (even if currently layout is ignored, std140 is the
only layout implemented).
UBO information
---
src/mesa/main/uniforms.c | 22 ++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c
index b923aef..172c817 100644
--- a/src/mesa/main/uniforms.c
+++ b/src/mesa/main/uniforms.c
@@ -1522,6 +1522,23 @@ _mesa_G
---
src/mesa/main/bufferobj.c |2 +
src/mesa/main/uniforms.c | 99 +
2 files changed, 101 insertions(+), 0 deletions(-)
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index c453f9c..794cde5 100644
--- a/src/mesa/main/bufferobj
---
src/glsl/linker.cpp | 154 ++-
1 files changed, 152 insertions(+), 2 deletions(-)
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index ba81c59..8dcc0d4 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -784,6 +784,47 @@ get_
---
src/glsl/ast.h | 25 ++
src/glsl/ast_to_hir.cpp | 43 ++-
src/glsl/glsl_parser.yy | 162 +++
src/glsl/glsl_parser_extras.h |5 +
src/mesa/program/ir_to_mesa.cpp |5 +
5 files changed, 239 insertions
---
src/glsl/ir.h |2 ++
src/glsl/ir_clone.cpp |2 ++
src/glsl/opt_dead_code.cpp |2 ++
3 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/glsl/ir.h b/src/glsl/ir.h
index 2e899f3..cf57b3e 100644
--- a/src/glsl/ir.h
+++ b/src/glsl/ir.h
@@ -394,6 +394,8
---
src/mesa/main/mtypes.h| 47 -
src/mesa/main/shaderobj.c |7 ++
2 files changed, 53 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index f2eb889..49ae2fa 100644
--- a/src/mesa/main/mtypes.h
++
---
src/glsl/glsl_lexer.ll |3 ++-
src/glsl/glsl_parser_extras.cpp |1 +
src/glsl/glsl_parser_extras.h |2 ++
3 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/glsl/glsl_lexer.ll b/src/glsl/glsl_lexer.ll
index cfd8926..a091f62 100644
--- a/src/glsl/glsl_lexe
---
src/mapi/glapi/gen/ARB_Uniform_Buffer_Object.xml | 114 ++
src/mapi/glapi/gen/Makefile |1 +
src/mapi/glapi/gen/gl_API.xml|2 +-
3 files changed, 116 insertions(+), 1 deletions(-)
create mode 100644 src/mapi/glapi/gen/ARB_U
This set of patches add partial support for Uniform Buffer Object (UBO) in mesa.
This is still Work In Progress so the last 3 patches are not complete yet, and
support from the driver is not done yet. The first 6 patches however can be
reviewed.
I did not implement UBO "inside shader name" and a
This patch enables GLSL to parse geometry shader and generate
corresponding ir tree (behaviour of glCompileShader).
It adds ir_gs_function type to represent EmitVertex and
EndPrimitive function.
- This patch does not make linking of geometry shader possible.
- This patch does not implement GS part
From: Vincent Lejeune
This optimisation pass will look for and pack together float,
vec2, vec3 varyings in fragment shaders and transform the vertex
shader accordingly. It might improve performance depending on
the hardware.
# Changes from first patch :
# - Scons build file modified
# - More cas
From: Vincent Lejeune
This optimisation pass will look for and pack together float,
vec2, vec3 varyings in fragment shaders and transform the vertex
shader accordingly. It might improve performance depending on
the hardware.
---
src/glsl/Makefile |1 +
src/glsl/SConscript|
30 matches
Mail list logo