[Mesa-dev] [PATCH 1/5] glsl: introduce data section to ir_variable

Paul Berry stereotype441 at gmail.com
Thu Dec 5 13:16:29 PST 2013


On 4 December 2013 04:16, Tapani Pälli <tapani.palli at intel.com> wrote:

> Data section helps serialization and cloning of a ir_variable. This
> patch includes the helper bits used for read only ir_variables.
>
> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
>

I tried to build this patch (using commit 4d6cdb8 from your published
tree), and I got the following compile errors:

In file included from ../../src/glsl/glsl_parser_extras.cpp:39:0:
../../src/glsl/loop_analysis.h: In member function 'bool
loop_variable::is_loop_constant() const':
../../src/glsl/loop_analysis.h:211:21: error: 'class ir_variable' has no
member named 'read_only'
       assert(!this->var->read_only || (this->var->read_only && is_const));
                     ^
../../src/glsl/loop_analysis.h:211:46: error: 'class ir_variable' has no
member named 'read_only'
       assert(!this->var->read_only || (this->var->read_only && is_const));
                                              ^
Makefile:1654: recipe for target 'glsl_parser_extras.lo' failed
make[3]: *** [glsl_parser_extras.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
../../src/glsl/ast_to_hir.cpp: In member function 'virtual ir_rvalue*
ast_declarator_list::hir(exec_list*, _mesa_glsl_parse_state*)':
../../src/glsl/ast_to_hir.cpp:2869:13: error: 'class ast_declarator_list'
has no member named 'data'
    assert(!this->data.invariant);
             ^
Makefile:1619: recipe for target 'ast_to_hir.lo' failed

Fix these compile errors, and the patch is:

Reviewed-by: Paul Berry <stereotype441 at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131205/79915fe2/attachment.html>


More information about the mesa-dev mailing list