• Jason Ekstrand's avatar
    nir: Make nir_constant a vector rather than a matrix · 81e51b41
    Jason Ekstrand authored
    Most places in NIR, we treat matrices like arrays.  The one annoying
    exception to this has been nir_constant where a matrix is a first-class
    thing.  This commit changes that so a matrix nir_constant is the same as
    an array nir_constant.  This makes matrix nir_constants a tiny bit more
    expensive but shrinks all others by 96B.
    Reviewed-by: 's avatarKarol Herbst <kherbst@redhat.com>
    81e51b41
Name
Last commit
Last update
..
glcpp Loading commit data...
tests Loading commit data...
README Loading commit data...
TODO Loading commit data...
ast.h Loading commit data...
ast_array_index.cpp Loading commit data...
ast_expr.cpp Loading commit data...
ast_function.cpp Loading commit data...
ast_to_hir.cpp Loading commit data...
ast_type.cpp Loading commit data...
builtin_functions.cpp Loading commit data...
builtin_functions.h Loading commit data...
builtin_int64.h Loading commit data...
builtin_types.cpp Loading commit data...
builtin_variables.cpp Loading commit data...
float64.glsl Loading commit data...
generate_ir.cpp Loading commit data...
gl_nir.h Loading commit data...
gl_nir_link_atomics.c Loading commit data...
gl_nir_link_uniform_initializers.c Loading commit data...
gl_nir_link_uniforms.c Loading commit data...
gl_nir_link_xfb.c Loading commit data...
gl_nir_linker.c Loading commit data...
gl_nir_linker.h Loading commit data...
gl_nir_lower_atomics.c Loading commit data...
gl_nir_lower_bindless_images.c Loading commit data...
gl_nir_lower_buffers.c Loading commit data...
gl_nir_lower_samplers.c Loading commit data...
gl_nir_lower_samplers_as_deref.c Loading commit data...
gl_nir_opt_access.c Loading commit data...
glsl_lexer.ll Loading commit data...
glsl_parser.yy Loading commit data...
glsl_parser_extras.cpp Loading commit data...
glsl_parser_extras.h Loading commit data...
glsl_symbol_table.cpp Loading commit data...
glsl_symbol_table.h Loading commit data...
glsl_to_nir.cpp Loading commit data...
glsl_to_nir.h Loading commit data...
hir_field_selection.cpp Loading commit data...
int64.glsl Loading commit data...
ir.cpp Loading commit data...
ir.h Loading commit data...
ir_array_refcount.cpp Loading commit data...
ir_array_refcount.h Loading commit data...
ir_basic_block.cpp Loading commit data...
ir_basic_block.h Loading commit data...
ir_builder.cpp Loading commit data...
ir_builder.h Loading commit data...
ir_builder_print_visitor.cpp Loading commit data...
ir_builder_print_visitor.h Loading commit data...
ir_clone.cpp Loading commit data...
ir_constant_expression.cpp Loading commit data...
ir_equals.cpp Loading commit data...
ir_expression_flattening.cpp Loading commit data...
ir_expression_flattening.h Loading commit data...
ir_expression_operation.py Loading commit data...
ir_function.cpp Loading commit data...
ir_function_can_inline.cpp Loading commit data...
ir_function_detect_recursion.cpp Loading commit data...
ir_function_inlining.h Loading commit data...
ir_hierarchical_visitor.cpp Loading commit data...
ir_hierarchical_visitor.h Loading commit data...
ir_hv_accept.cpp Loading commit data...
ir_optimization.h Loading commit data...
ir_print_visitor.cpp Loading commit data...
ir_print_visitor.h Loading commit data...
ir_reader.cpp Loading commit data...
ir_reader.h Loading commit data...
ir_rvalue_visitor.cpp Loading commit data...
ir_rvalue_visitor.h Loading commit data...
ir_set_program_inouts.cpp Loading commit data...
ir_uniform.h Loading commit data...
ir_validate.cpp Loading commit data...
ir_variable_refcount.cpp Loading commit data...
ir_variable_refcount.h Loading commit data...
ir_visitor.h Loading commit data...
link_atomics.cpp Loading commit data...
link_functions.cpp Loading commit data...
link_interface_blocks.cpp Loading commit data...
link_uniform_block_active_visitor.cpp Loading commit data...
link_uniform_block_active_visitor.h Loading commit data...
link_uniform_blocks.cpp Loading commit data...
link_uniform_initializers.cpp Loading commit data...
link_uniforms.cpp Loading commit data...
link_varyings.cpp Loading commit data...
link_varyings.h Loading commit data...
linker.cpp Loading commit data...
linker.h Loading commit data...
linker_util.cpp Loading commit data...
linker_util.h Loading commit data...
list.h Loading commit data...
loop_analysis.cpp Loading commit data...
loop_analysis.h Loading commit data...
loop_unroll.cpp Loading commit data...
lower_blend_equation_advanced.cpp Loading commit data...
lower_buffer_access.cpp Loading commit data...
lower_buffer_access.h Loading commit data...
lower_const_arrays_to_uniforms.cpp Loading commit data...
lower_cs_derived.cpp Loading commit data...
lower_discard.cpp Loading commit data...
lower_discard_flow.cpp Loading commit data...
lower_distance.cpp Loading commit data...
lower_if_to_cond_assign.cpp Loading commit data...
lower_instructions.cpp Loading commit data...
lower_int64.cpp Loading commit data...
lower_jumps.cpp Loading commit data...
lower_mat_op_to_vec.cpp Loading commit data...
lower_named_interface_blocks.cpp Loading commit data...
lower_noise.cpp Loading commit data...
lower_offset_array.cpp Loading commit data...
lower_output_reads.cpp Loading commit data...
lower_packed_varyings.cpp Loading commit data...
lower_packing_builtins.cpp Loading commit data...
lower_shared_reference.cpp Loading commit data...
lower_subroutine.cpp Loading commit data...
lower_tess_level.cpp Loading commit data...
lower_texture_projection.cpp Loading commit data...
lower_ubo_reference.cpp Loading commit data...
lower_variable_index_to_cond_assign.cpp Loading commit data...
lower_vec_index_to_cond_assign.cpp Loading commit data...
lower_vec_index_to_swizzle.cpp Loading commit data...
lower_vector.cpp Loading commit data...
lower_vector_derefs.cpp Loading commit data...
lower_vector_insert.cpp Loading commit data...
lower_vertex_id.cpp Loading commit data...
main.cpp Loading commit data...
meson.build Loading commit data...
opt_add_neg_to_sub.h Loading commit data...
opt_algebraic.cpp Loading commit data...
opt_array_splitting.cpp Loading commit data...
opt_conditional_discard.cpp Loading commit data...
opt_constant_folding.cpp Loading commit data...
opt_constant_propagation.cpp Loading commit data...
opt_constant_variable.cpp Loading commit data...
opt_copy_propagation_elements.cpp Loading commit data...
opt_dead_builtin_variables.cpp Loading commit data...
opt_dead_builtin_varyings.cpp Loading commit data...
opt_dead_code.cpp Loading commit data...
opt_dead_code_local.cpp Loading commit data...
opt_dead_functions.cpp Loading commit data...
opt_flatten_nested_if_blocks.cpp Loading commit data...
opt_flip_matrices.cpp Loading commit data...
opt_function_inlining.cpp Loading commit data...
opt_if_simplification.cpp Loading commit data...
opt_minmax.cpp Loading commit data...
opt_rebalance_tree.cpp Loading commit data...
opt_redundant_jumps.cpp Loading commit data...
opt_structure_splitting.cpp Loading commit data...
opt_swizzle.cpp Loading commit data...
opt_tree_grafting.cpp Loading commit data...
opt_vectorize.cpp Loading commit data...
program.h Loading commit data...
propagate_invariance.cpp Loading commit data...
s_expression.cpp Loading commit data...
s_expression.h Loading commit data...
serialize.cpp Loading commit data...
serialize.h Loading commit data...
shader_cache.cpp Loading commit data...
shader_cache.h Loading commit data...
standalone.cpp Loading commit data...
standalone.h Loading commit data...
standalone_scaffolding.cpp Loading commit data...
standalone_scaffolding.h Loading commit data...
string_to_uint_map.cpp Loading commit data...
string_to_uint_map.h Loading commit data...
test.cpp Loading commit data...
test_optpass.cpp Loading commit data...
test_optpass.h Loading commit data...
xxd.py Loading commit data...