Skip to content
  • Timothy Arceri's avatar
    st/mesa/glsl: add new is_arb_asm flag in gl_program · f584f382
    Timothy Arceri authored
    
    
    Set the flag via the _mesa_init_gl_program() and NewProgram()
    helpers.
    
    In i965 we currently check for the existance of gl_shader_program
    to decide if this is an ARB assembly style program or not.
    
    Adding a flag makes the code clearer and will help removes a
    dependency on gl_shader_program in the i965 codegen functions.
    
    Also this will allow use to skip initialising sampler units for
    linked shaders, we currently memset it to zero again during linking.
    
    Reviewed-by: default avatarEric Anholt <eric@anholt.net>
    f584f382