mesa/st: glsl_to_tgsi move some helper classes to extra files
authorGert Wollny <gw.fossdev@gmail.com>
Wed, 21 Jun 2017 08:05:23 +0000 (10:05 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 6 Sep 2017 09:49:27 +0000 (11:49 +0200)
commit732246701f58a6be4bd377fbd2ecf1f10737824e
tree5bea2d6be0fae6a8a97d64c7930f9c269d5af20c
parentb65ff7a02df26f900faac52b3529662dc0148fab
mesa/st: glsl_to_tgsi move some helper classes to extra files

To prepare the implementation of a temp register lifetime tracker
some of the classes are moved into seperate header/implementation
files to make them accessible from other files.

Specifically these are:

    class st_src_reg;
    class st_dst_reg;
    class glsl_to_tgsi_instruction;
    struct rename_reg_pair;

    int swizzle_for_type(const glsl_type *type, int component);

  as inline:

    bool is_resource_instruction(unsigned opcode);
    unsigned num_inst_dst_regs(const glsl_to_tgsi_instruction *op);
    unsigned num_inst_src_regs(const glsl_to_tgsi_instruction *op);

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/Makefile.sources
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_glsl_to_tgsi_private.cpp [new file with mode: 0644]
src/mesa/state_tracker/st_glsl_to_tgsi_private.h [new file with mode: 0644]