[Mesa-dev] [PATCH v2 34/82] i965: handle visiting of ir_var_shader_storage variables

Jordan Justen jordan.l.justen at intel.com
Fri Jul 10 15:18:41 PDT 2015


Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>

On 2015-06-03 00:01:24, Iago Toral Quiroga wrote:
> ---
>  src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
> index a2a75a4..13496a3 100644
> --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
> @@ -1053,11 +1053,12 @@ vec4_visitor::visit(ir_variable *ir)
>        break;
>  
>     case ir_var_uniform:
> +   case ir_var_shader_storage:
>        reg = new(this->mem_ctx) dst_reg(UNIFORM, this->uniforms);
>  
>        /* Thanks to the lower_ubo_reference pass, we will see only
> -       * ir_binop_ubo_load expressions and not ir_dereference_variable for UBO
> -       * variables, so no need for them to be in variable_ht.
> +       * ir_binop_{ubo,ssbo}_load expressions and not ir_dereference_variable
> +       * for UBO/SSBO variables, so no need for them to be in variable_ht.
>         *
>         * Some uniforms, such as samplers and atomic counters, have no actual
>         * storage, so we should ignore them.
> -- 
> 1.9.1
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list