summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* nir/opcodes: Make ldexp take an explicitly 32-bit intJason Ekstrand2016-04-282-2/+2
| | | | | | | | | There is no sense in having the double version of ldexp take a 64-bit integer. Instead, let's just take a 32-bit int all the time. This also matches what GLSL does where both variants of ldexp take a regular integer for the exponent argument. Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
* nir/opcodes: Simplify the expressions for [un]pack_doubleJason Ekstrand2016-04-281-61/+8
| | | | | | | | | | The new expressions are more explicit in terms of where the bits go so it's a little easier to tell what's going on. This is the way GLSL specifies things so it's a bit easier to verify too. It also has the benifit that the new expressions easily vectorize so we can constant-fold vector forms of the _split versions correctly. Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
* mesa: Fix indirect draw buffer size check on 32-bit systems.Kenneth Graunke2016-04-281-1/+1
| | | | | | | | | | | | | | Fixes dEQP-GLES31.functional subtests: draw_indirect.negative.command_offset_not_in_buffer_signed32_wrap draw_indirect.negative.command_offset_not_in_buffer_unsigned32_wrap These tests use really large values that overflow GLsizeiptr, at which point the buffer size isn't less than "end". Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95138 Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Alejandro Piñeiro <[email protected]> Reviewed-by: Mark Janes <[email protected]>
* nir: Switch the arguments to nir_foreach_defJason Ekstrand2016-04-284-5/+5
| | | | | | | | | | This matches the "foreach x in container" pattern found in many other programming languages. Generated by the following regular expression: s/nir_foreach_def(\([^,]*\),\s*\([^,]*\))/nir_foreach_def(\2, \1)/ Reviewed-by: Eduardo Lima Mitev <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
* nir: Switch the arguments to nir_foreach_use and friendsJason Ekstrand2016-04-2812-27/+27
| | | | | | | | | | | This matches the "foreach x in container" pattern found in many other programming languages. Generated by the following regular expression: s/nir_foreach_use(\([^,]*\),\s*\([^,]*\))/nir_foreach_use(\2, \1)/ and similar expressions for nir_foreach_use_safe, etc. Reviewed-by: Ian Romanick <[email protected]>
* nir: Switch the arguments to nir_foreach_functionJason Ekstrand2016-04-2861-77/+77
| | | | | | | | | This matches the "foreach x in container" pattern found in many other programming languages. Generated by the following regular expression: s/nir_foreach_function(\([^,]*\),\s*\([^,]*\))/nir_foreach_function(\2, \1)/ Reviewed-by: Ian Romanick <[email protected]>
* nir: Switch the arguments to nir_foreach_parallel_copy_entryJason Ekstrand2016-04-284-7/+7
| | | | | | | | This matches the "foreach x in container" pattern found in many other programming languages. Reviewed-by: Eduardo Lima Mitev <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
* nir: Switch the arguments to nir_foreach_phi_srcJason Ekstrand2016-04-2815-23/+23
| | | | | | | | | | | This matches the "foreach x in container" pattern found in many other programming languages. Generated by the following regular expression: s/nir_foreach_phi_src(\([^,]*\),\s*\([^,]*\))/nir_foreach_phi_src(\2, \1)/ and a similar expression for nir_foreach_phi_src_safe. Reviewed-by: Eduardo Lima Mitev <[email protected]>
* nir: Switch the arguments to nir_foreach_instrJason Ekstrand2016-04-2865-106/+106
| | | | | | | | | | | This matches the "foreach x in container" pattern found in many other programming languages. Generated by the following regular expression: s/nir_foreach_instr(\([^,]*\),\s*\([^,]*\))/nir_foreach_instr(\2, \1)/ and similar expressions for nir_foreach_instr_safe etc. Reviewed-by: Ian Romanick <[email protected]>
* anv/lower_push_constants: fixup for nir_foreach_block()Jason Ekstrand2016-04-281-22/+18
| | | | Signed-off-by: Jason Ekstrand <[email protected]>
* anv/apply_pipeline_layout: fixup for nir_foreach_block()Jason Ekstrand2016-04-281-22/+19
| | | | Signed-off-by: Jason Ekstrand <[email protected]>
* anv/apply_dynamic_offsets: fixup for nir_foreach_block()Jason Ekstrand2016-04-281-33/+22
| | | | Signed-off-by: Jason Ekstrand <[email protected]>
* i965/nir: fixup for new foreach_block()Connor Abbott2016-04-286-80/+69
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/algebraic: fixup for new foreach_block()Connor Abbott2016-04-281-20/+14
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/validate: fixup for new foreach_block()Connor Abbott2016-04-281-10/+4
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/nir_worklist: fixup for new foreach_block()Connor Abbott2016-04-281-9/+3
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/remove_dead_variables: fixup for new foreach_block()Connor Abbott2016-04-281-28/+20
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/split_var_copies: fixup for new foreach_block()Connor Abbott2016-04-281-4/+4
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/repair_ssa: fixup for new foreach_block()Connor Abbott2016-04-281-11/+5
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/opt_peephole_select: fixup for new foreach_block()Connor Abbott2016-04-281-23/+14
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/phi_builder: fixup for new foreach_block()Connor Abbott2016-04-281-9/+3
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/opt_cp: fixup for new foreach_block()Connor Abbott2016-04-281-18/+10
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/opt_remove_phis: fixup for new foreach_block()Connor Abbott2016-04-281-5/+7
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/opt_undef: fixup for new foreach_block()Connor Abbott2016-04-281-15/+8
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/opt_dead_cf: fixup for new foreach_block()Connor Abbott2016-04-281-22/+21
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/opt_dce: fixup for new foreach_block()Connor Abbott2016-04-281-20/+13
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/opt_gcm: fixup for new foreach_block()Connor Abbott2016-04-281-4/+5
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/opt_constant_folding: fixup for new foreach_block()Connor Abbott2016-04-281-15/+13
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/lower_samplers: fixup for new foreach_block()Connor Abbott2016-04-281-28/+8
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/normalize_cubemap_coords: fixup for new foreach_block()Connor Abbott2016-04-281-15/+11
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/lower_var_copies: fixup for new foreach_block()Connor Abbott2016-04-281-19/+15
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/move_vec_src_uses_to_dest: fixup for new foreach_block()Connor Abbott2016-04-281-2/+5
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/lower_vars_to_ssa: fixup for new foreach_block()Connor Abbott2016-04-281-5/+9
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/lower_vec_to_movs: fixup for new foreach_block()Connor Abbott2016-04-281-14/+10
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/lower_idiv: fixup for new foreach_block()Connor Abbott2016-04-281-14/+7
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/lower_to_source_mods: fixup for new foreeach_block()Connor Abbott2016-04-281-9/+6
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/lower_io: fixup for new foreach_block()Connor Abbott2016-04-281-4/+5
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/lower_system_values: fixup for new foreach_block()Connor Abbott2016-04-281-16/+11
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/lower_phis_to_scalar: fixup for new foreach_block()Connor Abbott2016-04-281-4/+5
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/lower_indirect_derefs: fixup for new foreach_block()Connor Abbott2016-04-281-22/+17
| | | | | | v2 (Jason Ekstrand): Use nir_foreach_block_safe Reviewed-by: Jason Ekstrand <[email protected]>
* nir/nir_lower_global_vars: fixup for new foreach_block()Connor Abbott2016-04-281-22/+16
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/lower_atomics: fixup for new foreach_block()Connor Abbott2016-04-281-25/+11
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/lower_load_const: fixup for new foreach_block()Connor Abbott2016-04-281-12/+6
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/lower_locals_to_regs: fixup for new foreach_block()Connor Abbott2016-04-281-4/+5
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/lower_gs_intrinsics: fixup for new foreach_block()Connor Abbott2016-04-281-4/+4
| | | | | | v2 (Jason Ekstrand): Use nir_foreach_block_safe Reviewed-by: Jason Ekstrand <[email protected]>
* nir/nir: fixup for new foreach_block()Connor Abbott2016-04-281-28/+14
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/lower_clip: fixup for new foreach_block()Connor Abbott2016-04-281-29/+21
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/lower_alu_to_scalar: fixup for new foreach_block()Connor Abbott2016-04-281-12/+6
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/liveness: fixup for new foreach_block()Connor Abbott2016-04-281-14/+10
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* nir/inline_functions: fixup for new foreach_block()Connor Abbott2016-04-281-30/+23
| | | | Reviewed-by: Jason Ekstrand <[email protected]>