Lines Matching full:values
251 const struct V3D33_HALT * restrict values) in V3D33_HALT_pack() argument
253 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_HALT_pack()
261 struct V3D33_HALT * restrict values) in V3D33_HALT_unpack() argument
263 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_HALT_unpack()
278 const struct V3D33_NOP * restrict values) in V3D33_NOP_pack() argument
280 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_NOP_pack()
288 struct V3D33_NOP * restrict values) in V3D33_NOP_unpack() argument
290 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_NOP_unpack()
305 const struct V3D33_FLUSH * restrict values) in V3D33_FLUSH_pack() argument
307 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_FLUSH_pack()
315 struct V3D33_FLUSH * restrict values) in V3D33_FLUSH_unpack() argument
317 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_FLUSH_unpack()
332 const struct V3D33_FLUSH_ALL_STATE * restrict values) in V3D33_FLUSH_ALL_STATE_pack() argument
334 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_FLUSH_ALL_STATE_pack()
342 struct V3D33_FLUSH_ALL_STATE * restrict values) in V3D33_FLUSH_ALL_STATE_unpack() argument
344 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_FLUSH_ALL_STATE_unpack()
359 const struct V3D33_START_TILE_BINNING * restrict values) in V3D33_START_TILE_BINNING_pack() argument
361 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_START_TILE_BINNING_pack()
369 struct V3D33_START_TILE_BINNING * restrict values) in V3D33_START_TILE_BINNING_unpack() argument
371 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_START_TILE_BINNING_unpack()
386 const struct V3D33_INCREMENT_SEMAPHORE * restrict values) in V3D33_INCREMENT_SEMAPHORE_pack() argument
388 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_INCREMENT_SEMAPHORE_pack()
396 struct V3D33_INCREMENT_SEMAPHORE * restrict values) in V3D33_INCREMENT_SEMAPHORE_unpack() argument
398 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_INCREMENT_SEMAPHORE_unpack()
413 const struct V3D33_WAIT_ON_SEMAPHORE * restrict values) in V3D33_WAIT_ON_SEMAPHORE_pack() argument
415 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_WAIT_ON_SEMAPHORE_pack()
423 struct V3D33_WAIT_ON_SEMAPHORE * restrict values) in V3D33_WAIT_ON_SEMAPHORE_unpack() argument
425 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_WAIT_ON_SEMAPHORE_unpack()
440 const struct V3D33_WAIT_FOR_PREVIOUS_FRAME * restrict values) in V3D33_WAIT_FOR_PREVIOUS_FRAME_pack() argument
442 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_WAIT_FOR_PREVIOUS_FRAME_pack()
450 struct V3D33_WAIT_FOR_PREVIOUS_FRAME * restrict values) in V3D33_WAIT_FOR_PREVIOUS_FRAME_unpack() argument
452 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_WAIT_FOR_PREVIOUS_FRAME_unpack()
467 const struct V3D33_ENABLE_Z_ONLY_RENDERING * restrict values) in V3D33_ENABLE_Z_ONLY_RENDERING_pack() argument
469 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_ENABLE_Z_ONLY_RENDERING_pack()
477 struct V3D33_ENABLE_Z_ONLY_RENDERING * restrict values) in V3D33_ENABLE_Z_ONLY_RENDERING_unpack() argument
479 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_ENABLE_Z_ONLY_RENDERING_unpack()
494 const struct V3D33_DISABLE_Z_ONLY_RENDERING * restrict values) in V3D33_DISABLE_Z_ONLY_RENDERING_pack() argument
496 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_DISABLE_Z_ONLY_RENDERING_pack()
504 struct V3D33_DISABLE_Z_ONLY_RENDERING * restrict values) in V3D33_DISABLE_Z_ONLY_RENDERING_unpack() argument
506 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_DISABLE_Z_ONLY_RENDERING_unpack()
521 … const struct V3D33_END_OF_Z_ONLY_RENDERING_IN_FRAME * restrict values) in V3D33_END_OF_Z_ONLY_RENDERING_IN_FRAME_pack() argument
523 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_END_OF_Z_ONLY_RENDERING_IN_FRAME_pack()
531 … struct V3D33_END_OF_Z_ONLY_RENDERING_IN_FRAME * restrict values) in V3D33_END_OF_Z_ONLY_RENDERING_IN_FRAME_unpack() argument
533 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_END_OF_Z_ONLY_RENDERING_IN_FRAME_unpack()
548 const struct V3D33_END_OF_RENDERING * restrict values) in V3D33_END_OF_RENDERING_pack() argument
550 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_END_OF_RENDERING_pack()
558 struct V3D33_END_OF_RENDERING * restrict values) in V3D33_END_OF_RENDERING_unpack() argument
560 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_END_OF_RENDERING_unpack()
576 … const struct V3D33_WAIT_FOR_TRANSFORM_FEEDBACK * restrict values) in V3D33_WAIT_FOR_TRANSFORM_FEEDBACK_pack() argument
578 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_WAIT_FOR_TRANSFORM_FEEDBACK_pack()
580 cl[ 1] = __gen_uint(values->block_count, 0, 7); in V3D33_WAIT_FOR_TRANSFORM_FEEDBACK_pack()
588 struct V3D33_WAIT_FOR_TRANSFORM_FEEDBACK * restrict values) in V3D33_WAIT_FOR_TRANSFORM_FEEDBACK_unpack() argument
590 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_WAIT_FOR_TRANSFORM_FEEDBACK_unpack()
591 values->block_count = __gen_unpack_uint(cl, 8, 15); in V3D33_WAIT_FOR_TRANSFORM_FEEDBACK_unpack()
607 … const struct V3D33_BRANCH_TO_AUTO_CHAINED_SUB_LIST * restrict values) in V3D33_BRANCH_TO_AUTO_CHAINED_SUB_LIST_pack() argument
609 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_BRANCH_TO_AUTO_CHAINED_SUB_LIST_pack()
611 __gen_emit_reloc(data, &values->address); in V3D33_BRANCH_TO_AUTO_CHAINED_SUB_LIST_pack()
612 cl[ 1] = __gen_address_offset(&values->address); in V3D33_BRANCH_TO_AUTO_CHAINED_SUB_LIST_pack()
614 cl[ 2] = __gen_address_offset(&values->address) >> 8; in V3D33_BRANCH_TO_AUTO_CHAINED_SUB_LIST_pack()
616 cl[ 3] = __gen_address_offset(&values->address) >> 16; in V3D33_BRANCH_TO_AUTO_CHAINED_SUB_LIST_pack()
618 cl[ 4] = __gen_address_offset(&values->address) >> 24; in V3D33_BRANCH_TO_AUTO_CHAINED_SUB_LIST_pack()
626 … struct V3D33_BRANCH_TO_AUTO_CHAINED_SUB_LIST * restrict values) in V3D33_BRANCH_TO_AUTO_CHAINED_SUB_LIST_unpack() argument
628 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_BRANCH_TO_AUTO_CHAINED_SUB_LIST_unpack()
629 values->address = __gen_unpack_address(cl, 8, 39); in V3D33_BRANCH_TO_AUTO_CHAINED_SUB_LIST_unpack()
645 const struct V3D33_BRANCH * restrict values) in V3D33_BRANCH_pack() argument
647 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_BRANCH_pack()
649 __gen_emit_reloc(data, &values->address); in V3D33_BRANCH_pack()
650 cl[ 1] = __gen_address_offset(&values->address); in V3D33_BRANCH_pack()
652 cl[ 2] = __gen_address_offset(&values->address) >> 8; in V3D33_BRANCH_pack()
654 cl[ 3] = __gen_address_offset(&values->address) >> 16; in V3D33_BRANCH_pack()
656 cl[ 4] = __gen_address_offset(&values->address) >> 24; in V3D33_BRANCH_pack()
664 struct V3D33_BRANCH * restrict values) in V3D33_BRANCH_unpack() argument
666 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_BRANCH_unpack()
667 values->address = __gen_unpack_address(cl, 8, 39); in V3D33_BRANCH_unpack()
683 const struct V3D33_BRANCH_TO_SUB_LIST * restrict values) in V3D33_BRANCH_TO_SUB_LIST_pack() argument
685 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_BRANCH_TO_SUB_LIST_pack()
687 __gen_emit_reloc(data, &values->address); in V3D33_BRANCH_TO_SUB_LIST_pack()
688 cl[ 1] = __gen_address_offset(&values->address); in V3D33_BRANCH_TO_SUB_LIST_pack()
690 cl[ 2] = __gen_address_offset(&values->address) >> 8; in V3D33_BRANCH_TO_SUB_LIST_pack()
692 cl[ 3] = __gen_address_offset(&values->address) >> 16; in V3D33_BRANCH_TO_SUB_LIST_pack()
694 cl[ 4] = __gen_address_offset(&values->address) >> 24; in V3D33_BRANCH_TO_SUB_LIST_pack()
702 struct V3D33_BRANCH_TO_SUB_LIST * restrict values) in V3D33_BRANCH_TO_SUB_LIST_unpack() argument
704 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_BRANCH_TO_SUB_LIST_unpack()
705 values->address = __gen_unpack_address(cl, 8, 39); in V3D33_BRANCH_TO_SUB_LIST_unpack()
720 const struct V3D33_RETURN_FROM_SUB_LIST * restrict values) in V3D33_RETURN_FROM_SUB_LIST_pack() argument
722 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_RETURN_FROM_SUB_LIST_pack()
730 struct V3D33_RETURN_FROM_SUB_LIST * restrict values) in V3D33_RETURN_FROM_SUB_LIST_unpack() argument
732 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_RETURN_FROM_SUB_LIST_unpack()
747 const struct V3D33_FLUSH_VCD_CACHE * restrict values) in V3D33_FLUSH_VCD_CACHE_pack() argument
749 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_FLUSH_VCD_CACHE_pack()
757 struct V3D33_FLUSH_VCD_CACHE * restrict values) in V3D33_FLUSH_VCD_CACHE_unpack() argument
759 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_FLUSH_VCD_CACHE_unpack()
776 … const struct V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST * restrict values) in V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST_pack() argument
778 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST_pack()
780 __gen_emit_reloc(data, &values->start); in V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST_pack()
781 cl[ 1] = __gen_address_offset(&values->start); in V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST_pack()
783 cl[ 2] = __gen_address_offset(&values->start) >> 8; in V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST_pack()
785 cl[ 3] = __gen_address_offset(&values->start) >> 16; in V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST_pack()
787 cl[ 4] = __gen_address_offset(&values->start) >> 24; in V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST_pack()
789 __gen_emit_reloc(data, &values->end); in V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST_pack()
790 cl[ 5] = __gen_address_offset(&values->end); in V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST_pack()
792 cl[ 6] = __gen_address_offset(&values->end) >> 8; in V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST_pack()
794 cl[ 7] = __gen_address_offset(&values->end) >> 16; in V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST_pack()
796 cl[ 8] = __gen_address_offset(&values->end) >> 24; in V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST_pack()
804 … struct V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST * restrict values) in V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST_unpack() argument
806 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST_unpack()
807 values->start = __gen_unpack_address(cl, 8, 39); in V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST_unpack()
808 values->end = __gen_unpack_address(cl, 40, 71); in V3D33_START_ADDRESS_OF_GENERIC_TILE_LIST_unpack()
824 … const struct V3D33_BRANCH_TO_IMPLICIT_TILE_LIST * restrict values) in V3D33_BRANCH_TO_IMPLICIT_TILE_LIST_pack() argument
826 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_BRANCH_TO_IMPLICIT_TILE_LIST_pack()
828 cl[ 1] = __gen_uint(values->tile_list_set_number, 0, 7); in V3D33_BRANCH_TO_IMPLICIT_TILE_LIST_pack()
836 … struct V3D33_BRANCH_TO_IMPLICIT_TILE_LIST * restrict values) in V3D33_BRANCH_TO_IMPLICIT_TILE_LIST_unpack() argument
838 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_BRANCH_TO_IMPLICIT_TILE_LIST_unpack()
839 values->tile_list_set_number = __gen_unpack_uint(cl, 8, 15); in V3D33_BRANCH_TO_IMPLICIT_TILE_LIST_unpack()
858 … const struct V3D33_BRANCH_TO_EXPLICIT_SUPERTILE * restrict values) in V3D33_BRANCH_TO_EXPLICIT_SUPERTILE_pack() argument
860 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_BRANCH_TO_EXPLICIT_SUPERTILE_pack()
862 cl[ 1] = __gen_uint(values->column_number, 0, 7); in V3D33_BRANCH_TO_EXPLICIT_SUPERTILE_pack()
864 cl[ 2] = __gen_uint(values->row_number, 0, 7); in V3D33_BRANCH_TO_EXPLICIT_SUPERTILE_pack()
866 cl[ 3] = __gen_uint(values->explicit_supertile_number, 0, 7); in V3D33_BRANCH_TO_EXPLICIT_SUPERTILE_pack()
868 __gen_emit_reloc(data, &values->absolute_address_of_explicit_supertile_render_list); in V3D33_BRANCH_TO_EXPLICIT_SUPERTILE_pack()
869 cl[ 4] = __gen_address_offset(&values->absolute_address_of_explicit_supertile_render_list); in V3D33_BRANCH_TO_EXPLICIT_SUPERTILE_pack()
871 cl[ 5] = __gen_address_offset(&values->absolute_address_of_explicit_supertile_render_list) >> 8; in V3D33_BRANCH_TO_EXPLICIT_SUPERTILE_pack()
873 cl[ 6] = __gen_address_offset(&values->absolute_address_of_explicit_supertile_render_list) >> 16; in V3D33_BRANCH_TO_EXPLICIT_SUPERTILE_pack()
875 cl[ 7] = __gen_address_offset(&values->absolute_address_of_explicit_supertile_render_list) >> 24; in V3D33_BRANCH_TO_EXPLICIT_SUPERTILE_pack()
883 … struct V3D33_BRANCH_TO_EXPLICIT_SUPERTILE * restrict values) in V3D33_BRANCH_TO_EXPLICIT_SUPERTILE_unpack() argument
885 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_BRANCH_TO_EXPLICIT_SUPERTILE_unpack()
886 values->absolute_address_of_explicit_supertile_render_list = __gen_unpack_address(cl, 32, 63); in V3D33_BRANCH_TO_EXPLICIT_SUPERTILE_unpack()
887 values->explicit_supertile_number = __gen_unpack_uint(cl, 24, 31); in V3D33_BRANCH_TO_EXPLICIT_SUPERTILE_unpack()
888 values->row_number = __gen_unpack_uint(cl, 16, 23); in V3D33_BRANCH_TO_EXPLICIT_SUPERTILE_unpack()
889 values->column_number = __gen_unpack_uint(cl, 8, 15); in V3D33_BRANCH_TO_EXPLICIT_SUPERTILE_unpack()
906 const struct V3D33_SUPERTILE_COORDINATES * restrict values) in V3D33_SUPERTILE_COORDINATES_pack() argument
908 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_SUPERTILE_COORDINATES_pack()
910 cl[ 1] = __gen_uint(values->column_number_in_supertiles, 0, 7); in V3D33_SUPERTILE_COORDINATES_pack()
912 cl[ 2] = __gen_uint(values->row_number_in_supertiles, 0, 7); in V3D33_SUPERTILE_COORDINATES_pack()
920 struct V3D33_SUPERTILE_COORDINATES * restrict values) in V3D33_SUPERTILE_COORDINATES_unpack() argument
922 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_SUPERTILE_COORDINATES_unpack()
923 values->row_number_in_supertiles = __gen_unpack_uint(cl, 16, 23); in V3D33_SUPERTILE_COORDINATES_unpack()
924 values->column_number_in_supertiles = __gen_unpack_uint(cl, 8, 15); in V3D33_SUPERTILE_COORDINATES_unpack()
939 … const struct V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER * restrict values) in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_pack() argument
941 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_pack()
949 … struct V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER * restrict values) in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_unpack() argument
951 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_unpack()
974 … const struct V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED * restrict values) in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_pack() argument
976 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_pack()
978 cl[ 1] = __gen_uint(values->enable_z_write, 7, 7) | in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_pack()
979 __gen_uint(values->enable_stencil_write, 6, 6) | in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_pack()
980 __gen_uint(values->disable_color_buffers_clear_on_write, 4, 4) | in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_pack()
981 __gen_uint(values->disable_stencil_buffer_clear_on_write, 3, 3) | in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_pack()
982 __gen_uint(values->disable_z_buffer_clear_on_write, 2, 2) | in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_pack()
983 __gen_uint(values->disable_fast_opportunistic_write_out_in_multisample_mode, 1, 1) | in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_pack()
984 __gen_uint(values->last_tile_of_frame, 0, 0); in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_pack()
986 cl[ 2] = __gen_uint(values->disable_color_buffer_write, 0, 7); in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_pack()
994 … struct V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED * restrict values) in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_unpack() argument
996 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_unpack()
997 values->disable_color_buffer_write = __gen_unpack_uint(cl, 16, 23); in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_unpack()
998 values->enable_z_write = __gen_unpack_uint(cl, 15, 15); in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_unpack()
999 values->enable_stencil_write = __gen_unpack_uint(cl, 14, 14); in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_unpack()
1000 values->disable_color_buffers_clear_on_write = __gen_unpack_uint(cl, 12, 12); in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_unpack()
1001 values->disable_stencil_buffer_clear_on_write = __gen_unpack_uint(cl, 11, 11); in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_unpack()
1002 values->disable_z_buffer_clear_on_write = __gen_unpack_uint(cl, 10, 10); in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_unpack()
1003 values->disable_fast_opportunistic_write_out_in_multisample_mode = __gen_unpack_uint(cl, 9, 9); in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_unpack()
1004 values->last_tile_of_frame = __gen_unpack_uint(cl, 8, 8); in V3D33_STORE_MULTI_SAMPLE_RESOLVED_TILE_COLOR_BUFFER_EXTENDED_unpack()
1022 const struct V3D33_RELOAD_TILE_COLOR_BUFFER * restrict values) in V3D33_RELOAD_TILE_COLOR_BUFFER_pack() argument
1024 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_RELOAD_TILE_COLOR_BUFFER_pack()
1026 cl[ 1] = __gen_uint(values->enable_z_load, 7, 7) | in V3D33_RELOAD_TILE_COLOR_BUFFER_pack()
1027 __gen_uint(values->enable_stencil_load, 6, 6); in V3D33_RELOAD_TILE_COLOR_BUFFER_pack()
1029 cl[ 2] = __gen_uint(values->disable_color_buffer_load, 0, 7); in V3D33_RELOAD_TILE_COLOR_BUFFER_pack()
1037 struct V3D33_RELOAD_TILE_COLOR_BUFFER * restrict values) in V3D33_RELOAD_TILE_COLOR_BUFFER_unpack() argument
1039 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_RELOAD_TILE_COLOR_BUFFER_unpack()
1040 values->disable_color_buffer_load = __gen_unpack_uint(cl, 16, 23); in V3D33_RELOAD_TILE_COLOR_BUFFER_unpack()
1041 values->enable_z_load = __gen_unpack_uint(cl, 15, 15); in V3D33_RELOAD_TILE_COLOR_BUFFER_unpack()
1042 values->enable_stencil_load = __gen_unpack_uint(cl, 14, 14); in V3D33_RELOAD_TILE_COLOR_BUFFER_unpack()
1057 const struct V3D33_END_OF_TILE_MARKER * restrict values) in V3D33_END_OF_TILE_MARKER_pack() argument
1059 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_END_OF_TILE_MARKER_pack()
1067 struct V3D33_END_OF_TILE_MARKER * restrict values) in V3D33_END_OF_TILE_MARKER_unpack() argument
1069 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_END_OF_TILE_MARKER_unpack()
1101 const struct V3D33_STORE_TILE_BUFFER_GENERAL * restrict values) in V3D33_STORE_TILE_BUFFER_GENERAL_pack() argument
1103 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_STORE_TILE_BUFFER_GENERAL_pack()
1105 cl[ 1] = __gen_uint(values->disable_color_buffers_clear_on_write, 7, 7) | in V3D33_STORE_TILE_BUFFER_GENERAL_pack()
1106 __gen_uint(values->disable_stencil_buffer_clear_on_write, 6, 6) | in V3D33_STORE_TILE_BUFFER_GENERAL_pack()
1107 __gen_uint(values->disable_z_buffer_clear_on_write, 5, 5) | in V3D33_STORE_TILE_BUFFER_GENERAL_pack()
1108 __gen_uint(values->raw_mode, 4, 4) | in V3D33_STORE_TILE_BUFFER_GENERAL_pack()
1109 __gen_uint(values->buffer_to_store, 0, 3); in V3D33_STORE_TILE_BUFFER_GENERAL_pack()
1111 cl[ 2] = __gen_uint(values->padded_height_of_output_image_in_uif_blocks, 3, 15) | in V3D33_STORE_TILE_BUFFER_GENERAL_pack()
1112 __gen_uint(values->xor_uif, 2, 2) | in V3D33_STORE_TILE_BUFFER_GENERAL_pack()
1113 __gen_uint(values->last_tile_of_frame, 0, 0); in V3D33_STORE_TILE_BUFFER_GENERAL_pack()
1115 cl[ 3] = __gen_uint(values->padded_height_of_output_image_in_uif_blocks, 3, 15) >> 8; in V3D33_STORE_TILE_BUFFER_GENERAL_pack()
1117 __gen_emit_reloc(data, &values->address); in V3D33_STORE_TILE_BUFFER_GENERAL_pack()
1118 cl[ 4] = __gen_address_offset(&values->address) >> 8; in V3D33_STORE_TILE_BUFFER_GENERAL_pack()
1120 cl[ 5] = __gen_address_offset(&values->address) >> 16; in V3D33_STORE_TILE_BUFFER_GENERAL_pack()
1122 cl[ 6] = __gen_address_offset(&values->address) >> 24; in V3D33_STORE_TILE_BUFFER_GENERAL_pack()
1130 struct V3D33_STORE_TILE_BUFFER_GENERAL * restrict values) in V3D33_STORE_TILE_BUFFER_GENERAL_unpack() argument
1132 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_STORE_TILE_BUFFER_GENERAL_unpack()
1133 values->address = __gen_unpack_address(cl, 32, 55); in V3D33_STORE_TILE_BUFFER_GENERAL_unpack()
1134 values->padded_height_of_output_image_in_uif_blocks = __gen_unpack_uint(cl, 19, 31); in V3D33_STORE_TILE_BUFFER_GENERAL_unpack()
1135 values->xor_uif = __gen_unpack_uint(cl, 18, 18); in V3D33_STORE_TILE_BUFFER_GENERAL_unpack()
1136 values->last_tile_of_frame = __gen_unpack_uint(cl, 16, 16); in V3D33_STORE_TILE_BUFFER_GENERAL_unpack()
1137 values->disable_color_buffers_clear_on_write = __gen_unpack_uint(cl, 15, 15); in V3D33_STORE_TILE_BUFFER_GENERAL_unpack()
1138 values->disable_stencil_buffer_clear_on_write = __gen_unpack_uint(cl, 14, 14); in V3D33_STORE_TILE_BUFFER_GENERAL_unpack()
1139 values->disable_z_buffer_clear_on_write = __gen_unpack_uint(cl, 13, 13); in V3D33_STORE_TILE_BUFFER_GENERAL_unpack()
1140 values->raw_mode = __gen_unpack_uint(cl, 12, 12); in V3D33_STORE_TILE_BUFFER_GENERAL_unpack()
1141 values->buffer_to_store = __gen_unpack_uint(cl, 8, 11); in V3D33_STORE_TILE_BUFFER_GENERAL_unpack()
1169 const struct V3D33_LOAD_TILE_BUFFER_GENERAL * restrict values) in V3D33_LOAD_TILE_BUFFER_GENERAL_pack() argument
1171 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_LOAD_TILE_BUFFER_GENERAL_pack()
1173 cl[ 1] = __gen_uint(values->raw_mode, 4, 4) | in V3D33_LOAD_TILE_BUFFER_GENERAL_pack()
1174 __gen_uint(values->buffer_to_load, 0, 3); in V3D33_LOAD_TILE_BUFFER_GENERAL_pack()
1176 cl[ 2] = __gen_uint(values->padded_height_of_output_image_in_uif_blocks, 3, 15) | in V3D33_LOAD_TILE_BUFFER_GENERAL_pack()
1177 __gen_uint(values->xor_uif, 2, 2); in V3D33_LOAD_TILE_BUFFER_GENERAL_pack()
1179 cl[ 3] = __gen_uint(values->padded_height_of_output_image_in_uif_blocks, 3, 15) >> 8; in V3D33_LOAD_TILE_BUFFER_GENERAL_pack()
1181 __gen_emit_reloc(data, &values->address); in V3D33_LOAD_TILE_BUFFER_GENERAL_pack()
1182 cl[ 4] = __gen_address_offset(&values->address) >> 8; in V3D33_LOAD_TILE_BUFFER_GENERAL_pack()
1184 cl[ 5] = __gen_address_offset(&values->address) >> 16; in V3D33_LOAD_TILE_BUFFER_GENERAL_pack()
1186 cl[ 6] = __gen_address_offset(&values->address) >> 24; in V3D33_LOAD_TILE_BUFFER_GENERAL_pack()
1194 struct V3D33_LOAD_TILE_BUFFER_GENERAL * restrict values) in V3D33_LOAD_TILE_BUFFER_GENERAL_unpack() argument
1196 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_LOAD_TILE_BUFFER_GENERAL_unpack()
1197 values->address = __gen_unpack_address(cl, 32, 55); in V3D33_LOAD_TILE_BUFFER_GENERAL_unpack()
1198 values->padded_height_of_output_image_in_uif_blocks = __gen_unpack_uint(cl, 19, 31); in V3D33_LOAD_TILE_BUFFER_GENERAL_unpack()
1199 values->xor_uif = __gen_unpack_uint(cl, 18, 18); in V3D33_LOAD_TILE_BUFFER_GENERAL_unpack()
1200 values->raw_mode = __gen_unpack_uint(cl, 12, 12); in V3D33_LOAD_TILE_BUFFER_GENERAL_unpack()
1201 values->buffer_to_load = __gen_unpack_uint(cl, 8, 11); in V3D33_LOAD_TILE_BUFFER_GENERAL_unpack()
1216 … const struct V3D33_TRANSFORM_FEEDBACK_FLUSH_AND_COUNT * restrict values) in V3D33_TRANSFORM_FEEDBACK_FLUSH_AND_COUNT_pack() argument
1218 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_TRANSFORM_FEEDBACK_FLUSH_AND_COUNT_pack()
1226 … struct V3D33_TRANSFORM_FEEDBACK_FLUSH_AND_COUNT * restrict values) in V3D33_TRANSFORM_FEEDBACK_FLUSH_AND_COUNT_unpack() argument
1228 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_TRANSFORM_FEEDBACK_FLUSH_AND_COUNT_unpack()
1253 const struct V3D33_INDEXED_PRIM_LIST * restrict values) in V3D33_INDEXED_PRIM_LIST_pack() argument
1255 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_INDEXED_PRIM_LIST_pack()
1257 cl[ 1] = __gen_uint(values->index_type, 6, 7) | in V3D33_INDEXED_PRIM_LIST_pack()
1258 __gen_uint(values->mode, 0, 4); in V3D33_INDEXED_PRIM_LIST_pack()
1261 memcpy(&cl[2], &values->length, sizeof(values->length)); in V3D33_INDEXED_PRIM_LIST_pack()
1262 __gen_emit_reloc(data, &values->address_of_indices_list); in V3D33_INDEXED_PRIM_LIST_pack()
1263 cl[ 6] = __gen_address_offset(&values->address_of_indices_list); in V3D33_INDEXED_PRIM_LIST_pack()
1265 cl[ 7] = __gen_address_offset(&values->address_of_indices_list) >> 8; in V3D33_INDEXED_PRIM_LIST_pack()
1267 cl[ 8] = __gen_address_offset(&values->address_of_indices_list) >> 16; in V3D33_INDEXED_PRIM_LIST_pack()
1269 cl[ 9] = __gen_address_offset(&values->address_of_indices_list) >> 24; in V3D33_INDEXED_PRIM_LIST_pack()
1271 cl[10] = __gen_uint(values->maximum_index, 0, 30); in V3D33_INDEXED_PRIM_LIST_pack()
1273 cl[11] = __gen_uint(values->maximum_index, 0, 30) >> 8; in V3D33_INDEXED_PRIM_LIST_pack()
1275 cl[12] = __gen_uint(values->maximum_index, 0, 30) >> 16; in V3D33_INDEXED_PRIM_LIST_pack()
1277 cl[13] = __gen_uint(values->enable_primitive_restarts, 7, 7) | in V3D33_INDEXED_PRIM_LIST_pack()
1278 __gen_uint(values->maximum_index, 0, 30) >> 24; in V3D33_INDEXED_PRIM_LIST_pack()
1281 memcpy(&cl[14], &values->minimum_index, sizeof(values->minimum_index)); in V3D33_INDEXED_PRIM_LIST_pack()
1288 struct V3D33_INDEXED_PRIM_LIST * restrict values) in V3D33_INDEXED_PRIM_LIST_unpack() argument
1290 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_INDEXED_PRIM_LIST_unpack()
1291 values->minimum_index = __gen_unpack_uint(cl, 112, 143); in V3D33_INDEXED_PRIM_LIST_unpack()
1292 values->enable_primitive_restarts = __gen_unpack_uint(cl, 111, 111); in V3D33_INDEXED_PRIM_LIST_unpack()
1293 values->maximum_index = __gen_unpack_uint(cl, 80, 110); in V3D33_INDEXED_PRIM_LIST_unpack()
1294 values->address_of_indices_list = __gen_unpack_address(cl, 48, 79); in V3D33_INDEXED_PRIM_LIST_unpack()
1295 values->length = __gen_unpack_uint(cl, 16, 47); in V3D33_INDEXED_PRIM_LIST_unpack()
1296 values->index_type = __gen_unpack_uint(cl, 14, 15); in V3D33_INDEXED_PRIM_LIST_unpack()
1297 values->mode = __gen_unpack_uint(cl, 8, 12); in V3D33_INDEXED_PRIM_LIST_unpack()
1322 … const struct V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST * restrict values) in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack() argument
1324 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1326 cl[ 1] = __gen_uint(values->index_type, 6, 7) | in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1327 __gen_uint(values->mode, 0, 5); in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1329 cl[ 2] = __gen_uint(values->number_of_draw_indirect_indexed_records, 0, 30); in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1331 cl[ 3] = __gen_uint(values->number_of_draw_indirect_indexed_records, 0, 30) >> 8; in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1333 cl[ 4] = __gen_uint(values->number_of_draw_indirect_indexed_records, 0, 30) >> 16; in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1335 cl[ 5] = __gen_uint(values->enable_primitive_restarts, 7, 7) | in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1336 __gen_uint(values->number_of_draw_indirect_indexed_records, 0, 30) >> 24; in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1338 __gen_emit_reloc(data, &values->address); in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1339 cl[ 6] = __gen_address_offset(&values->address); in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1341 cl[ 7] = __gen_address_offset(&values->address) >> 8; in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1343 cl[ 8] = __gen_address_offset(&values->address) >> 16; in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1345 cl[ 9] = __gen_address_offset(&values->address) >> 24; in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1347 __gen_emit_reloc(data, &values->address_of_indices_list); in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1348 cl[10] = __gen_address_offset(&values->address_of_indices_list); in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1350 cl[11] = __gen_address_offset(&values->address_of_indices_list) >> 8; in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1352 cl[12] = __gen_address_offset(&values->address_of_indices_list) >> 16; in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1354 cl[13] = __gen_address_offset(&values->address_of_indices_list) >> 24; in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1356 cl[14] = __gen_uint(values->stride_in_multiples_of_4_bytes, 0, 7); in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_pack()
1364 … struct V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST * restrict values) in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_unpack() argument
1366 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_unpack()
1367 values->stride_in_multiples_of_4_bytes = __gen_unpack_uint(cl, 112, 119); in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_unpack()
1368 values->address_of_indices_list = __gen_unpack_address(cl, 80, 111); in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_unpack()
1369 values->address = __gen_unpack_address(cl, 48, 79); in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_unpack()
1370 values->enable_primitive_restarts = __gen_unpack_uint(cl, 47, 47); in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_unpack()
1371 values->number_of_draw_indirect_indexed_records = __gen_unpack_uint(cl, 16, 46); in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_unpack()
1372 values->index_type = __gen_unpack_uint(cl, 14, 15); in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_unpack()
1373 values->mode = __gen_unpack_uint(cl, 8, 13); in V3D33_INDIRECT_INDEXED_INSTANCED_PRIM_LIST_unpack()
1398 … const struct V3D33_INDEXED_INSTANCED_PRIM_LIST * restrict values) in V3D33_INDEXED_INSTANCED_PRIM_LIST_pack() argument
1400 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_INDEXED_INSTANCED_PRIM_LIST_pack()
1402 cl[ 1] = __gen_uint(values->index_type, 6, 7) | in V3D33_INDEXED_INSTANCED_PRIM_LIST_pack()
1403 __gen_uint(values->mode, 0, 4); in V3D33_INDEXED_INSTANCED_PRIM_LIST_pack()
1406 memcpy(&cl[2], &values->instance_length, sizeof(values->instance_length)); in V3D33_INDEXED_INSTANCED_PRIM_LIST_pack()
1408 memcpy(&cl[6], &values->number_of_instances, sizeof(values->number_of_instances)); in V3D33_INDEXED_INSTANCED_PRIM_LIST_pack()
1409 __gen_emit_reloc(data, &values->address_of_indices_list); in V3D33_INDEXED_INSTANCED_PRIM_LIST_pack()
1410 cl[10] = __gen_address_offset(&values->address_of_indices_list); in V3D33_INDEXED_INSTANCED_PRIM_LIST_pack()
1412 cl[11] = __gen_address_offset(&values->address_of_indices_list) >> 8; in V3D33_INDEXED_INSTANCED_PRIM_LIST_pack()
1414 cl[12] = __gen_address_offset(&values->address_of_indices_list) >> 16; in V3D33_INDEXED_INSTANCED_PRIM_LIST_pack()
1416 cl[13] = __gen_address_offset(&values->address_of_indices_list) >> 24; in V3D33_INDEXED_INSTANCED_PRIM_LIST_pack()
1418 cl[14] = __gen_uint(values->maximum_index, 0, 30); in V3D33_INDEXED_INSTANCED_PRIM_LIST_pack()
1420 cl[15] = __gen_uint(values->maximum_index, 0, 30) >> 8; in V3D33_INDEXED_INSTANCED_PRIM_LIST_pack()
1422 cl[16] = __gen_uint(values->maximum_index, 0, 30) >> 16; in V3D33_INDEXED_INSTANCED_PRIM_LIST_pack()
1424 cl[17] = __gen_uint(values->enable_primitive_restarts, 7, 7) | in V3D33_INDEXED_INSTANCED_PRIM_LIST_pack()
1425 __gen_uint(values->maximum_index, 0, 30) >> 24; in V3D33_INDEXED_INSTANCED_PRIM_LIST_pack()
1433 struct V3D33_INDEXED_INSTANCED_PRIM_LIST * restrict values) in V3D33_INDEXED_INSTANCED_PRIM_LIST_unpack() argument
1435 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_INDEXED_INSTANCED_PRIM_LIST_unpack()
1436 values->enable_primitive_restarts = __gen_unpack_uint(cl, 143, 143); in V3D33_INDEXED_INSTANCED_PRIM_LIST_unpack()
1437 values->maximum_index = __gen_unpack_uint(cl, 112, 142); in V3D33_INDEXED_INSTANCED_PRIM_LIST_unpack()
1438 values->address_of_indices_list = __gen_unpack_address(cl, 80, 111); in V3D33_INDEXED_INSTANCED_PRIM_LIST_unpack()
1439 values->number_of_instances = __gen_unpack_uint(cl, 48, 79); in V3D33_INDEXED_INSTANCED_PRIM_LIST_unpack()
1440 values->instance_length = __gen_unpack_uint(cl, 16, 47); in V3D33_INDEXED_INSTANCED_PRIM_LIST_unpack()
1441 values->index_type = __gen_unpack_uint(cl, 14, 15); in V3D33_INDEXED_INSTANCED_PRIM_LIST_unpack()
1442 values->mode = __gen_unpack_uint(cl, 8, 12); in V3D33_INDEXED_INSTANCED_PRIM_LIST_unpack()
1460 const struct V3D33_VERTEX_ARRAY_PRIMS * restrict values) in V3D33_VERTEX_ARRAY_PRIMS_pack() argument
1462 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_VERTEX_ARRAY_PRIMS_pack()
1464 cl[ 1] = __gen_uint(values->mode, 0, 7); in V3D33_VERTEX_ARRAY_PRIMS_pack()
1467 memcpy(&cl[2], &values->length, sizeof(values->length)); in V3D33_VERTEX_ARRAY_PRIMS_pack()
1469 memcpy(&cl[6], &values->index_of_first_vertex, sizeof(values->index_of_first_vertex)); in V3D33_VERTEX_ARRAY_PRIMS_pack()
1476 struct V3D33_VERTEX_ARRAY_PRIMS * restrict values) in V3D33_VERTEX_ARRAY_PRIMS_unpack() argument
1478 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_VERTEX_ARRAY_PRIMS_unpack()
1479 values->index_of_first_vertex = __gen_unpack_uint(cl, 48, 79); in V3D33_VERTEX_ARRAY_PRIMS_unpack()
1480 values->length = __gen_unpack_uint(cl, 16, 47); in V3D33_VERTEX_ARRAY_PRIMS_unpack()
1481 values->mode = __gen_unpack_uint(cl, 8, 15); in V3D33_VERTEX_ARRAY_PRIMS_unpack()
1500 … const struct V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS * restrict values) in V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS_pack() argument
1502 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS_pack()
1504 cl[ 1] = __gen_uint(values->mode, 0, 7); in V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS_pack()
1507 …memcpy(&cl[2], &values->number_of_draw_indirect_array_records, sizeof(values->number_of_draw_indir… in V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS_pack()
1508 __gen_emit_reloc(data, &values->address); in V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS_pack()
1509 cl[ 6] = __gen_address_offset(&values->address); in V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS_pack()
1511 cl[ 7] = __gen_address_offset(&values->address) >> 8; in V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS_pack()
1513 cl[ 8] = __gen_address_offset(&values->address) >> 16; in V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS_pack()
1515 cl[ 9] = __gen_address_offset(&values->address) >> 24; in V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS_pack()
1517 cl[10] = __gen_uint(values->stride_in_multiples_of_4_bytes, 0, 7); in V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS_pack()
1525 … struct V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS * restrict values) in V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS_unpack() argument
1527 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS_unpack()
1528 values->stride_in_multiples_of_4_bytes = __gen_unpack_uint(cl, 80, 87); in V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS_unpack()
1529 values->address = __gen_unpack_address(cl, 48, 79); in V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS_unpack()
1530 values->number_of_draw_indirect_array_records = __gen_unpack_uint(cl, 16, 47); in V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS_unpack()
1531 values->mode = __gen_unpack_uint(cl, 8, 15); in V3D33_INDIRECT_VERTEX_ARRAY_INSTANCED_PRIMS_unpack()
1550 … const struct V3D33_VERTEX_ARRAY_INSTANCED_PRIMS * restrict values) in V3D33_VERTEX_ARRAY_INSTANCED_PRIMS_pack() argument
1552 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_VERTEX_ARRAY_INSTANCED_PRIMS_pack()
1554 cl[ 1] = __gen_uint(values->mode, 0, 7); in V3D33_VERTEX_ARRAY_INSTANCED_PRIMS_pack()
1557 memcpy(&cl[2], &values->instance_length, sizeof(values->instance_length)); in V3D33_VERTEX_ARRAY_INSTANCED_PRIMS_pack()
1559 memcpy(&cl[6], &values->number_of_instances, sizeof(values->number_of_instances)); in V3D33_VERTEX_ARRAY_INSTANCED_PRIMS_pack()
1561 memcpy(&cl[10], &values->index_of_first_vertex, sizeof(values->index_of_first_vertex)); in V3D33_VERTEX_ARRAY_INSTANCED_PRIMS_pack()
1568 … struct V3D33_VERTEX_ARRAY_INSTANCED_PRIMS * restrict values) in V3D33_VERTEX_ARRAY_INSTANCED_PRIMS_unpack() argument
1570 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_VERTEX_ARRAY_INSTANCED_PRIMS_unpack()
1571 values->index_of_first_vertex = __gen_unpack_uint(cl, 80, 111); in V3D33_VERTEX_ARRAY_INSTANCED_PRIMS_unpack()
1572 values->number_of_instances = __gen_unpack_uint(cl, 48, 79); in V3D33_VERTEX_ARRAY_INSTANCED_PRIMS_unpack()
1573 values->instance_length = __gen_unpack_uint(cl, 16, 47); in V3D33_VERTEX_ARRAY_INSTANCED_PRIMS_unpack()
1574 values->mode = __gen_unpack_uint(cl, 8, 15); in V3D33_VERTEX_ARRAY_INSTANCED_PRIMS_unpack()
1593 … const struct V3D33_VERTEX_ARRAY_SINGLE_INSTANCE_PRIMS * restrict values) in V3D33_VERTEX_ARRAY_SINGLE_INSTANCE_PRIMS_pack() argument
1595 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_VERTEX_ARRAY_SINGLE_INSTANCE_PRIMS_pack()
1597 cl[ 1] = __gen_uint(values->mode, 0, 7); in V3D33_VERTEX_ARRAY_SINGLE_INSTANCE_PRIMS_pack()
1600 memcpy(&cl[2], &values->instance_length, sizeof(values->instance_length)); in V3D33_VERTEX_ARRAY_SINGLE_INSTANCE_PRIMS_pack()
1602 memcpy(&cl[6], &values->instance_id, sizeof(values->instance_id)); in V3D33_VERTEX_ARRAY_SINGLE_INSTANCE_PRIMS_pack()
1604 memcpy(&cl[10], &values->index_of_first_vertex, sizeof(values->index_of_first_vertex)); in V3D33_VERTEX_ARRAY_SINGLE_INSTANCE_PRIMS_pack()
1611 … struct V3D33_VERTEX_ARRAY_SINGLE_INSTANCE_PRIMS * restrict values) in V3D33_VERTEX_ARRAY_SINGLE_INSTANCE_PRIMS_unpack() argument
1613 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_VERTEX_ARRAY_SINGLE_INSTANCE_PRIMS_unpack()
1614 values->index_of_first_vertex = __gen_unpack_uint(cl, 80, 111); in V3D33_VERTEX_ARRAY_SINGLE_INSTANCE_PRIMS_unpack()
1615 values->instance_id = __gen_unpack_uint(cl, 48, 79); in V3D33_VERTEX_ARRAY_SINGLE_INSTANCE_PRIMS_unpack()
1616 values->instance_length = __gen_unpack_uint(cl, 16, 47); in V3D33_VERTEX_ARRAY_SINGLE_INSTANCE_PRIMS_unpack()
1617 values->mode = __gen_unpack_uint(cl, 8, 15); in V3D33_VERTEX_ARRAY_SINGLE_INSTANCE_PRIMS_unpack()
1634 const struct V3D33_BASE_VERTEX_BASE_INSTANCE * restrict values) in V3D33_BASE_VERTEX_BASE_INSTANCE_pack() argument
1636 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_BASE_VERTEX_BASE_INSTANCE_pack()
1639 memcpy(&cl[1], &values->base_vertex, sizeof(values->base_vertex)); in V3D33_BASE_VERTEX_BASE_INSTANCE_pack()
1641 memcpy(&cl[5], &values->base_instance, sizeof(values->base_instance)); in V3D33_BASE_VERTEX_BASE_INSTANCE_pack()
1648 struct V3D33_BASE_VERTEX_BASE_INSTANCE * restrict values) in V3D33_BASE_VERTEX_BASE_INSTANCE_unpack() argument
1650 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_BASE_VERTEX_BASE_INSTANCE_unpack()
1651 values->base_instance = __gen_unpack_uint(cl, 40, 71); in V3D33_BASE_VERTEX_BASE_INSTANCE_unpack()
1652 values->base_vertex = __gen_unpack_uint(cl, 8, 39); in V3D33_BASE_VERTEX_BASE_INSTANCE_unpack()
1672 const struct V3D33_PRIM_LIST_FORMAT * restrict values) in V3D33_PRIM_LIST_FORMAT_pack() argument
1674 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_PRIM_LIST_FORMAT_pack()
1676 cl[ 1] = __gen_uint(values->tri_strip_or_fan, 7, 7) | in V3D33_PRIM_LIST_FORMAT_pack()
1677 __gen_uint(values->primitive_type, 0, 5); in V3D33_PRIM_LIST_FORMAT_pack()
1685 struct V3D33_PRIM_LIST_FORMAT * restrict values) in V3D33_PRIM_LIST_FORMAT_unpack() argument
1687 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_PRIM_LIST_FORMAT_unpack()
1688 values->tri_strip_or_fan = __gen_unpack_uint(cl, 15, 15); in V3D33_PRIM_LIST_FORMAT_unpack()
1689 values->primitive_type = __gen_unpack_uint(cl, 8, 13); in V3D33_PRIM_LIST_FORMAT_unpack()
1709 const struct V3D33_SERIAL_NUMBER_LIST_START * restrict values) in V3D33_SERIAL_NUMBER_LIST_START_pack() argument
1711 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_SERIAL_NUMBER_LIST_START_pack()
1713 __gen_emit_reloc(data, &values->address); in V3D33_SERIAL_NUMBER_LIST_START_pack()
1714 cl[ 1] = __gen_address_offset(&values->address) | in V3D33_SERIAL_NUMBER_LIST_START_pack()
1715 __gen_uint(values->block_size, 0, 1); in V3D33_SERIAL_NUMBER_LIST_START_pack()
1717 cl[ 2] = __gen_address_offset(&values->address) >> 8; in V3D33_SERIAL_NUMBER_LIST_START_pack()
1719 cl[ 3] = __gen_address_offset(&values->address) >> 16; in V3D33_SERIAL_NUMBER_LIST_START_pack()
1721 cl[ 4] = __gen_address_offset(&values->address) >> 24; in V3D33_SERIAL_NUMBER_LIST_START_pack()
1729 struct V3D33_SERIAL_NUMBER_LIST_START * restrict values) in V3D33_SERIAL_NUMBER_LIST_START_unpack() argument
1731 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_SERIAL_NUMBER_LIST_START_unpack()
1732 values->address = __gen_unpack_address(cl, 14, 39); in V3D33_SERIAL_NUMBER_LIST_START_unpack()
1733 values->block_size = __gen_unpack_uint(cl, 8, 9); in V3D33_SERIAL_NUMBER_LIST_START_unpack()
1750 const struct V3D33_GL_SHADER_STATE * restrict values) in V3D33_GL_SHADER_STATE_pack() argument
1752 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_GL_SHADER_STATE_pack()
1754 __gen_emit_reloc(data, &values->address); in V3D33_GL_SHADER_STATE_pack()
1755 cl[ 1] = __gen_address_offset(&values->address) | in V3D33_GL_SHADER_STATE_pack()
1756 __gen_uint(values->number_of_attribute_arrays, 0, 4); in V3D33_GL_SHADER_STATE_pack()
1758 cl[ 2] = __gen_address_offset(&values->address) >> 8; in V3D33_GL_SHADER_STATE_pack()
1760 cl[ 3] = __gen_address_offset(&values->address) >> 16; in V3D33_GL_SHADER_STATE_pack()
1762 cl[ 4] = __gen_address_offset(&values->address) >> 24; in V3D33_GL_SHADER_STATE_pack()
1770 struct V3D33_GL_SHADER_STATE * restrict values) in V3D33_GL_SHADER_STATE_unpack() argument
1772 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_GL_SHADER_STATE_unpack()
1773 values->address = __gen_unpack_address(cl, 13, 39); in V3D33_GL_SHADER_STATE_unpack()
1774 values->number_of_attribute_arrays = __gen_unpack_uint(cl, 8, 12); in V3D33_GL_SHADER_STATE_unpack()
1797 const struct V3D33_PRIMITIVE_COUNTS_FEEDBACK * restrict values) in V3D33_PRIMITIVE_COUNTS_FEEDBACK_pack() argument
1799 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_PRIMITIVE_COUNTS_FEEDBACK_pack()
1801 __gen_emit_reloc(data, &values->address); in V3D33_PRIMITIVE_COUNTS_FEEDBACK_pack()
1802 cl[ 1] = __gen_address_offset(&values->address) | in V3D33_PRIMITIVE_COUNTS_FEEDBACK_pack()
1803 __gen_uint(values->read_write_64byte, 4, 4) | in V3D33_PRIMITIVE_COUNTS_FEEDBACK_pack()
1804 __gen_uint(values->op, 0, 3); in V3D33_PRIMITIVE_COUNTS_FEEDBACK_pack()
1806 cl[ 2] = __gen_address_offset(&values->address) >> 8; in V3D33_PRIMITIVE_COUNTS_FEEDBACK_pack()
1808 cl[ 3] = __gen_address_offset(&values->address) >> 16; in V3D33_PRIMITIVE_COUNTS_FEEDBACK_pack()
1810 cl[ 4] = __gen_address_offset(&values->address) >> 24; in V3D33_PRIMITIVE_COUNTS_FEEDBACK_pack()
1818 struct V3D33_PRIMITIVE_COUNTS_FEEDBACK * restrict values) in V3D33_PRIMITIVE_COUNTS_FEEDBACK_unpack() argument
1820 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_PRIMITIVE_COUNTS_FEEDBACK_unpack()
1821 values->address = __gen_unpack_address(cl, 13, 39); in V3D33_PRIMITIVE_COUNTS_FEEDBACK_unpack()
1822 values->read_write_64byte = __gen_unpack_uint(cl, 12, 12); in V3D33_PRIMITIVE_COUNTS_FEEDBACK_unpack()
1823 values->op = __gen_unpack_uint(cl, 8, 11); in V3D33_PRIMITIVE_COUNTS_FEEDBACK_unpack()
1840 const struct V3D33_VCM_CACHE_SIZE * restrict values) in V3D33_VCM_CACHE_SIZE_pack() argument
1842 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_VCM_CACHE_SIZE_pack()
1844 cl[ 1] = __gen_uint(values->number_of_16_vertex_batches_for_rendering, 4, 7) | in V3D33_VCM_CACHE_SIZE_pack()
1845 __gen_uint(values->number_of_16_vertex_batches_for_binning, 0, 3); in V3D33_VCM_CACHE_SIZE_pack()
1853 struct V3D33_VCM_CACHE_SIZE * restrict values) in V3D33_VCM_CACHE_SIZE_unpack() argument
1855 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_VCM_CACHE_SIZE_unpack()
1856 values->number_of_16_vertex_batches_for_rendering = __gen_unpack_uint(cl, 12, 15); in V3D33_VCM_CACHE_SIZE_unpack()
1857 values->number_of_16_vertex_batches_for_binning = __gen_unpack_uint(cl, 8, 11); in V3D33_VCM_CACHE_SIZE_unpack()
1874 const struct V3D33_TRANSFORM_FEEDBACK_ENABLE * restrict values) in V3D33_TRANSFORM_FEEDBACK_ENABLE_pack() argument
1876 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_TRANSFORM_FEEDBACK_ENABLE_pack()
1879 cl[ 2] = __gen_uint(values->number_of_32_bit_output_buffer_address_following, 0, 2) | in V3D33_TRANSFORM_FEEDBACK_ENABLE_pack()
1880 __gen_uint(values->number_of_16_bit_output_data_specs_following, 3, 7); in V3D33_TRANSFORM_FEEDBACK_ENABLE_pack()
1888 struct V3D33_TRANSFORM_FEEDBACK_ENABLE * restrict values) in V3D33_TRANSFORM_FEEDBACK_ENABLE_unpack() argument
1890 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_TRANSFORM_FEEDBACK_ENABLE_unpack()
1891 values->number_of_32_bit_output_buffer_address_following = __gen_unpack_uint(cl, 16, 18); in V3D33_TRANSFORM_FEEDBACK_ENABLE_unpack()
1892 values->number_of_16_bit_output_data_specs_following = __gen_unpack_uint(cl, 19, 23); in V3D33_TRANSFORM_FEEDBACK_ENABLE_unpack()
1907 … const struct V3D33_FLUSH_TRANSFORM_FEEDBACK_DATA * restrict values) in V3D33_FLUSH_TRANSFORM_FEEDBACK_DATA_pack() argument
1909 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_FLUSH_TRANSFORM_FEEDBACK_DATA_pack()
1917 … struct V3D33_FLUSH_TRANSFORM_FEEDBACK_DATA * restrict values) in V3D33_FLUSH_TRANSFORM_FEEDBACK_DATA_unpack() argument
1919 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_FLUSH_TRANSFORM_FEEDBACK_DATA_unpack()
1938 const struct V3D33_L1_CACHE_FLUSH_CONTROL * restrict values) in V3D33_L1_CACHE_FLUSH_CONTROL_pack() argument
1940 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_L1_CACHE_FLUSH_CONTROL_pack()
1942 cl[ 1] = __gen_uint(values->uniforms_cache_clear, 4, 7) | in V3D33_L1_CACHE_FLUSH_CONTROL_pack()
1943 __gen_uint(values->instruction_cache_clear, 0, 3); in V3D33_L1_CACHE_FLUSH_CONTROL_pack()
1945 cl[ 2] = __gen_uint(values->tmu_config_cache_clear, 4, 7) | in V3D33_L1_CACHE_FLUSH_CONTROL_pack()
1946 __gen_uint(values->tmu_data_cache_clear, 0, 3); in V3D33_L1_CACHE_FLUSH_CONTROL_pack()
1954 struct V3D33_L1_CACHE_FLUSH_CONTROL * restrict values) in V3D33_L1_CACHE_FLUSH_CONTROL_unpack() argument
1956 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_L1_CACHE_FLUSH_CONTROL_unpack()
1957 values->tmu_config_cache_clear = __gen_unpack_uint(cl, 20, 23); in V3D33_L1_CACHE_FLUSH_CONTROL_unpack()
1958 values->tmu_data_cache_clear = __gen_unpack_uint(cl, 16, 19); in V3D33_L1_CACHE_FLUSH_CONTROL_unpack()
1959 values->uniforms_cache_clear = __gen_unpack_uint(cl, 12, 15); in V3D33_L1_CACHE_FLUSH_CONTROL_unpack()
1960 values->instruction_cache_clear = __gen_unpack_uint(cl, 8, 11); in V3D33_L1_CACHE_FLUSH_CONTROL_unpack()
1978 const struct V3D33_L2T_CACHE_FLUSH_CONTROL * restrict values) in V3D33_L2T_CACHE_FLUSH_CONTROL_pack() argument
1980 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_L2T_CACHE_FLUSH_CONTROL_pack()
1982 __gen_emit_reloc(data, &values->l2t_flush_start); in V3D33_L2T_CACHE_FLUSH_CONTROL_pack()
1983 cl[ 1] = __gen_address_offset(&values->l2t_flush_start); in V3D33_L2T_CACHE_FLUSH_CONTROL_pack()
1985 cl[ 2] = __gen_address_offset(&values->l2t_flush_start) >> 8; in V3D33_L2T_CACHE_FLUSH_CONTROL_pack()
1987 cl[ 3] = __gen_address_offset(&values->l2t_flush_start) >> 16; in V3D33_L2T_CACHE_FLUSH_CONTROL_pack()
1989 cl[ 4] = __gen_address_offset(&values->l2t_flush_start) >> 24; in V3D33_L2T_CACHE_FLUSH_CONTROL_pack()
1991 __gen_emit_reloc(data, &values->l2t_flush_end); in V3D33_L2T_CACHE_FLUSH_CONTROL_pack()
1992 cl[ 5] = __gen_address_offset(&values->l2t_flush_end); in V3D33_L2T_CACHE_FLUSH_CONTROL_pack()
1994 cl[ 6] = __gen_address_offset(&values->l2t_flush_end) >> 8; in V3D33_L2T_CACHE_FLUSH_CONTROL_pack()
1996 cl[ 7] = __gen_address_offset(&values->l2t_flush_end) >> 16; in V3D33_L2T_CACHE_FLUSH_CONTROL_pack()
1998 cl[ 8] = __gen_address_offset(&values->l2t_flush_end) >> 24; in V3D33_L2T_CACHE_FLUSH_CONTROL_pack()
2000 cl[ 9] = __gen_uint(values->l2t_flush_mode, 0, 3); in V3D33_L2T_CACHE_FLUSH_CONTROL_pack()
2008 struct V3D33_L2T_CACHE_FLUSH_CONTROL * restrict values) in V3D33_L2T_CACHE_FLUSH_CONTROL_unpack() argument
2010 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_L2T_CACHE_FLUSH_CONTROL_unpack()
2011 values->l2t_flush_mode = __gen_unpack_uint(cl, 72, 75); in V3D33_L2T_CACHE_FLUSH_CONTROL_unpack()
2012 values->l2t_flush_end = __gen_unpack_address(cl, 40, 71); in V3D33_L2T_CACHE_FLUSH_CONTROL_unpack()
2013 values->l2t_flush_start = __gen_unpack_address(cl, 8, 39); in V3D33_L2T_CACHE_FLUSH_CONTROL_unpack()
2029 … const struct V3D33_TRANSFORM_FEEDBACK_OUTPUT_DATA_SPEC * restrict values) in V3D33_TRANSFORM_FEEDBACK_OUTPUT_DATA_SPEC_pack() argument
2031 assert(values->number_of_consecutive_vertex_values_to_output_as_32_bit_values >= 1); in V3D33_TRANSFORM_FEEDBACK_OUTPUT_DATA_SPEC_pack()
2032 cl[ 0] = __gen_uint(values->first_shaded_vertex_value_to_output, 0, 7); in V3D33_TRANSFORM_FEEDBACK_OUTPUT_DATA_SPEC_pack()
2034 …cl[ 1] = __gen_uint(values->number_of_consecutive_vertex_values_to_output_as_32_bit_values - 1, 0,… in V3D33_TRANSFORM_FEEDBACK_OUTPUT_DATA_SPEC_pack()
2035 __gen_uint(values->output_buffer_to_write_to, 4, 5); in V3D33_TRANSFORM_FEEDBACK_OUTPUT_DATA_SPEC_pack()
2043 … struct V3D33_TRANSFORM_FEEDBACK_OUTPUT_DATA_SPEC * restrict values) in V3D33_TRANSFORM_FEEDBACK_OUTPUT_DATA_SPEC_unpack() argument
2045 values->first_shaded_vertex_value_to_output = __gen_unpack_uint(cl, 0, 7); in V3D33_TRANSFORM_FEEDBACK_OUTPUT_DATA_SPEC_unpack()
2046 …values->number_of_consecutive_vertex_values_to_output_as_32_bit_values = __gen_unpack_uint(cl, 8, … in V3D33_TRANSFORM_FEEDBACK_OUTPUT_DATA_SPEC_unpack()
2047 values->output_buffer_to_write_to = __gen_unpack_uint(cl, 12, 13); in V3D33_TRANSFORM_FEEDBACK_OUTPUT_DATA_SPEC_unpack()
2061 … const struct V3D33_TRANSFORM_FEEDBACK_OUTPUT_ADDRESS * restrict values) in V3D33_TRANSFORM_FEEDBACK_OUTPUT_ADDRESS_pack() argument
2063 __gen_emit_reloc(data, &values->address); in V3D33_TRANSFORM_FEEDBACK_OUTPUT_ADDRESS_pack()
2064 cl[ 0] = __gen_address_offset(&values->address); in V3D33_TRANSFORM_FEEDBACK_OUTPUT_ADDRESS_pack()
2066 cl[ 1] = __gen_address_offset(&values->address) >> 8; in V3D33_TRANSFORM_FEEDBACK_OUTPUT_ADDRESS_pack()
2068 cl[ 2] = __gen_address_offset(&values->address) >> 16; in V3D33_TRANSFORM_FEEDBACK_OUTPUT_ADDRESS_pack()
2070 cl[ 3] = __gen_address_offset(&values->address) >> 24; in V3D33_TRANSFORM_FEEDBACK_OUTPUT_ADDRESS_pack()
2078 … struct V3D33_TRANSFORM_FEEDBACK_OUTPUT_ADDRESS * restrict values) in V3D33_TRANSFORM_FEEDBACK_OUTPUT_ADDRESS_unpack() argument
2080 values->address = __gen_unpack_address(cl, 0, 31); in V3D33_TRANSFORM_FEEDBACK_OUTPUT_ADDRESS_unpack()
2104 const struct V3D33_STENCIL_CFG * restrict values) in V3D33_STENCIL_CFG_pack() argument
2106 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_STENCIL_CFG_pack()
2108 cl[ 1] = __gen_uint(values->stencil_ref_value, 0, 7); in V3D33_STENCIL_CFG_pack()
2110 cl[ 2] = __gen_uint(values->stencil_test_mask, 0, 7); in V3D33_STENCIL_CFG_pack()
2112 cl[ 3] = __gen_uint(values->depth_test_fail_op, 6, 8) | in V3D33_STENCIL_CFG_pack()
2113 __gen_uint(values->stencil_test_fail_op, 3, 5) | in V3D33_STENCIL_CFG_pack()
2114 __gen_uint(values->stencil_test_function, 0, 2); in V3D33_STENCIL_CFG_pack()
2116 cl[ 4] = __gen_uint(values->back_config, 5, 5) | in V3D33_STENCIL_CFG_pack()
2117 __gen_uint(values->front_config, 4, 4) | in V3D33_STENCIL_CFG_pack()
2118 __gen_uint(values->stencil_pass_op, 1, 3) | in V3D33_STENCIL_CFG_pack()
2119 __gen_uint(values->depth_test_fail_op, 6, 8) >> 8; in V3D33_STENCIL_CFG_pack()
2121 cl[ 5] = __gen_uint(values->stencil_write_mask, 0, 7); in V3D33_STENCIL_CFG_pack()
2129 struct V3D33_STENCIL_CFG * restrict values) in V3D33_STENCIL_CFG_unpack() argument
2131 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_STENCIL_CFG_unpack()
2132 values->stencil_write_mask = __gen_unpack_uint(cl, 40, 47); in V3D33_STENCIL_CFG_unpack()
2133 values->back_config = __gen_unpack_uint(cl, 37, 37); in V3D33_STENCIL_CFG_unpack()
2134 values->front_config = __gen_unpack_uint(cl, 36, 36); in V3D33_STENCIL_CFG_unpack()
2135 values->stencil_pass_op = __gen_unpack_uint(cl, 33, 35); in V3D33_STENCIL_CFG_unpack()
2136 values->depth_test_fail_op = __gen_unpack_uint(cl, 30, 32); in V3D33_STENCIL_CFG_unpack()
2137 values->stencil_test_fail_op = __gen_unpack_uint(cl, 27, 29); in V3D33_STENCIL_CFG_unpack()
2138 values->stencil_test_function = __gen_unpack_uint(cl, 24, 26); in V3D33_STENCIL_CFG_unpack()
2139 values->stencil_test_mask = __gen_unpack_uint(cl, 16, 23); in V3D33_STENCIL_CFG_unpack()
2140 values->stencil_ref_value = __gen_unpack_uint(cl, 8, 15); in V3D33_STENCIL_CFG_unpack()
2161 const struct V3D33_BLEND_CFG * restrict values) in V3D33_BLEND_CFG_pack() argument
2163 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_BLEND_CFG_pack()
2165 cl[ 1] = __gen_uint(values->alpha_blend_src_factor, 4, 7) | in V3D33_BLEND_CFG_pack()
2166 __gen_uint(values->alpha_blend_mode, 0, 3); in V3D33_BLEND_CFG_pack()
2168 cl[ 2] = __gen_uint(values->color_blend_mode, 4, 7) | in V3D33_BLEND_CFG_pack()
2169 __gen_uint(values->alpha_blend_dst_factor, 0, 3); in V3D33_BLEND_CFG_pack()
2171 cl[ 3] = __gen_uint(values->color_blend_dst_factor, 4, 7) | in V3D33_BLEND_CFG_pack()
2172 __gen_uint(values->color_blend_src_factor, 0, 3); in V3D33_BLEND_CFG_pack()
2180 struct V3D33_BLEND_CFG * restrict values) in V3D33_BLEND_CFG_unpack() argument
2182 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_BLEND_CFG_unpack()
2183 values->color_blend_dst_factor = __gen_unpack_uint(cl, 28, 31); in V3D33_BLEND_CFG_unpack()
2184 values->color_blend_src_factor = __gen_unpack_uint(cl, 24, 27); in V3D33_BLEND_CFG_unpack()
2185 values->color_blend_mode = __gen_unpack_uint(cl, 20, 23); in V3D33_BLEND_CFG_unpack()
2186 values->alpha_blend_dst_factor = __gen_unpack_uint(cl, 16, 19); in V3D33_BLEND_CFG_unpack()
2187 values->alpha_blend_src_factor = __gen_unpack_uint(cl, 12, 15); in V3D33_BLEND_CFG_unpack()
2188 values->alpha_blend_mode = __gen_unpack_uint(cl, 8, 11); in V3D33_BLEND_CFG_unpack()
2207 const struct V3D33_BLEND_CONSTANT_COLOR * restrict values) in V3D33_BLEND_CONSTANT_COLOR_pack() argument
2209 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_BLEND_CONSTANT_COLOR_pack()
2211 cl[ 1] = __gen_uint(values->red_f16, 0, 15); in V3D33_BLEND_CONSTANT_COLOR_pack()
2213 cl[ 2] = __gen_uint(values->red_f16, 0, 15) >> 8; in V3D33_BLEND_CONSTANT_COLOR_pack()
2215 cl[ 3] = __gen_uint(values->green_f16, 0, 15); in V3D33_BLEND_CONSTANT_COLOR_pack()
2217 cl[ 4] = __gen_uint(values->green_f16, 0, 15) >> 8; in V3D33_BLEND_CONSTANT_COLOR_pack()
2219 cl[ 5] = __gen_uint(values->blue_f16, 0, 15); in V3D33_BLEND_CONSTANT_COLOR_pack()
2221 cl[ 6] = __gen_uint(values->blue_f16, 0, 15) >> 8; in V3D33_BLEND_CONSTANT_COLOR_pack()
2223 cl[ 7] = __gen_uint(values->alpha_f16, 0, 15); in V3D33_BLEND_CONSTANT_COLOR_pack()
2225 cl[ 8] = __gen_uint(values->alpha_f16, 0, 15) >> 8; in V3D33_BLEND_CONSTANT_COLOR_pack()
2233 struct V3D33_BLEND_CONSTANT_COLOR * restrict values) in V3D33_BLEND_CONSTANT_COLOR_unpack() argument
2235 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_BLEND_CONSTANT_COLOR_unpack()
2236 values->alpha_f16 = __gen_unpack_uint(cl, 56, 71); in V3D33_BLEND_CONSTANT_COLOR_unpack()
2237 values->blue_f16 = __gen_unpack_uint(cl, 40, 55); in V3D33_BLEND_CONSTANT_COLOR_unpack()
2238 values->green_f16 = __gen_unpack_uint(cl, 24, 39); in V3D33_BLEND_CONSTANT_COLOR_unpack()
2239 values->red_f16 = __gen_unpack_uint(cl, 8, 23); in V3D33_BLEND_CONSTANT_COLOR_unpack()
2255 const struct V3D33_COLOR_WRITE_MASKS * restrict values) in V3D33_COLOR_WRITE_MASKS_pack() argument
2257 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_COLOR_WRITE_MASKS_pack()
2260 memcpy(&cl[1], &values->mask, sizeof(values->mask)); in V3D33_COLOR_WRITE_MASKS_pack()
2267 struct V3D33_COLOR_WRITE_MASKS * restrict values) in V3D33_COLOR_WRITE_MASKS_unpack() argument
2269 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_COLOR_WRITE_MASKS_unpack()
2270 values->mask = __gen_unpack_uint(cl, 8, 39); in V3D33_COLOR_WRITE_MASKS_unpack()
2286 const struct V3D33_OCCLUSION_QUERY_COUNTER * restrict values) in V3D33_OCCLUSION_QUERY_COUNTER_pack() argument
2288 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_OCCLUSION_QUERY_COUNTER_pack()
2290 __gen_emit_reloc(data, &values->address); in V3D33_OCCLUSION_QUERY_COUNTER_pack()
2291 cl[ 1] = __gen_address_offset(&values->address); in V3D33_OCCLUSION_QUERY_COUNTER_pack()
2293 cl[ 2] = __gen_address_offset(&values->address) >> 8; in V3D33_OCCLUSION_QUERY_COUNTER_pack()
2295 cl[ 3] = __gen_address_offset(&values->address) >> 16; in V3D33_OCCLUSION_QUERY_COUNTER_pack()
2297 cl[ 4] = __gen_address_offset(&values->address) >> 24; in V3D33_OCCLUSION_QUERY_COUNTER_pack()
2305 struct V3D33_OCCLUSION_QUERY_COUNTER * restrict values) in V3D33_OCCLUSION_QUERY_COUNTER_unpack() argument
2307 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_OCCLUSION_QUERY_COUNTER_unpack()
2308 values->address = __gen_unpack_address(cl, 8, 39); in V3D33_OCCLUSION_QUERY_COUNTER_unpack()
2338 const struct V3D33_CFG_BITS * restrict values) in V3D33_CFG_BITS_pack() argument
2340 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_CFG_BITS_pack()
2342 cl[ 1] = __gen_uint(values->rasterizer_oversample_mode, 6, 7) | in V3D33_CFG_BITS_pack()
2343 __gen_uint(values->line_rasterization, 4, 5) | in V3D33_CFG_BITS_pack()
2344 __gen_uint(values->enable_depth_offset, 3, 3) | in V3D33_CFG_BITS_pack()
2345 __gen_uint(values->clockwise_primitives, 2, 2) | in V3D33_CFG_BITS_pack()
2346 __gen_uint(values->enable_reverse_facing_primitive, 1, 1) | in V3D33_CFG_BITS_pack()
2347 __gen_uint(values->enable_forward_facing_primitive, 0, 0); in V3D33_CFG_BITS_pack()
2349 cl[ 2] = __gen_uint(values->z_updates_enable, 7, 7) | in V3D33_CFG_BITS_pack()
2350 __gen_uint(values->depth_test_function, 4, 6) | in V3D33_CFG_BITS_pack()
2351 __gen_uint(values->direct3d_wireframe_triangles_mode, 3, 3); in V3D33_CFG_BITS_pack()
2353 cl[ 3] = __gen_uint(values->direct3d_provoking_vertex, 5, 5) | in V3D33_CFG_BITS_pack()
2354 __gen_uint(values->direct3d_point_fill_mode, 4, 4) | in V3D33_CFG_BITS_pack()
2355 __gen_uint(values->blend_enable, 3, 3) | in V3D33_CFG_BITS_pack()
2356 __gen_uint(values->stencil_enable, 2, 2) | in V3D33_CFG_BITS_pack()
2357 __gen_uint(values->early_z_updates_enable, 1, 1) | in V3D33_CFG_BITS_pack()
2358 __gen_uint(values->early_z_enable, 0, 0); in V3D33_CFG_BITS_pack()
2366 struct V3D33_CFG_BITS * restrict values) in V3D33_CFG_BITS_unpack() argument
2368 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_CFG_BITS_unpack()
2369 values->direct3d_provoking_vertex = __gen_unpack_uint(cl, 29, 29); in V3D33_CFG_BITS_unpack()
2370 values->direct3d_point_fill_mode = __gen_unpack_uint(cl, 28, 28); in V3D33_CFG_BITS_unpack()
2371 values->blend_enable = __gen_unpack_uint(cl, 27, 27); in V3D33_CFG_BITS_unpack()
2372 values->stencil_enable = __gen_unpack_uint(cl, 26, 26); in V3D33_CFG_BITS_unpack()
2373 values->early_z_updates_enable = __gen_unpack_uint(cl, 25, 25); in V3D33_CFG_BITS_unpack()
2374 values->early_z_enable = __gen_unpack_uint(cl, 24, 24); in V3D33_CFG_BITS_unpack()
2375 values->z_updates_enable = __gen_unpack_uint(cl, 23, 23); in V3D33_CFG_BITS_unpack()
2376 values->depth_test_function = __gen_unpack_uint(cl, 20, 22); in V3D33_CFG_BITS_unpack()
2377 values->direct3d_wireframe_triangles_mode = __gen_unpack_uint(cl, 19, 19); in V3D33_CFG_BITS_unpack()
2378 values->rasterizer_oversample_mode = __gen_unpack_uint(cl, 14, 15); in V3D33_CFG_BITS_unpack()
2379 values->line_rasterization = __gen_unpack_uint(cl, 12, 13); in V3D33_CFG_BITS_unpack()
2380 values->enable_depth_offset = __gen_unpack_uint(cl, 11, 11); in V3D33_CFG_BITS_unpack()
2381 values->clockwise_primitives = __gen_unpack_uint(cl, 10, 10); in V3D33_CFG_BITS_unpack()
2382 values->enable_reverse_facing_primitive = __gen_unpack_uint(cl, 9, 9); in V3D33_CFG_BITS_unpack()
2383 values->enable_forward_facing_primitive = __gen_unpack_uint(cl, 8, 8); in V3D33_CFG_BITS_unpack()
2398 const struct V3D33_ZERO_ALL_FLAT_SHADE_FLAGS * restrict values) in V3D33_ZERO_ALL_FLAT_SHADE_FLAGS_pack() argument
2400 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_ZERO_ALL_FLAT_SHADE_FLAGS_pack()
2408 struct V3D33_ZERO_ALL_FLAT_SHADE_FLAGS * restrict values) in V3D33_ZERO_ALL_FLAT_SHADE_FLAGS_unpack() argument
2410 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_ZERO_ALL_FLAT_SHADE_FLAGS_unpack()
2429 const struct V3D33_FLAT_SHADE_FLAGS * restrict values) in V3D33_FLAT_SHADE_FLAGS_pack() argument
2431 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_FLAT_SHADE_FLAGS_pack()
2433 cl[ 1] = __gen_uint(values->action_for_flat_shade_flags_of_higher_numbered_varyings, 6, 7) | in V3D33_FLAT_SHADE_FLAGS_pack()
2434 __gen_uint(values->action_for_flat_shade_flags_of_lower_numbered_varyings, 4, 5) | in V3D33_FLAT_SHADE_FLAGS_pack()
2435 __gen_uint(values->varying_offset_v0, 0, 3); in V3D33_FLAT_SHADE_FLAGS_pack()
2437 cl[ 2] = __gen_uint(values->flat_shade_flags_for_varyings_v024, 0, 23); in V3D33_FLAT_SHADE_FLAGS_pack()
2439 cl[ 3] = __gen_uint(values->flat_shade_flags_for_varyings_v024, 0, 23) >> 8; in V3D33_FLAT_SHADE_FLAGS_pack()
2441 cl[ 4] = __gen_uint(values->flat_shade_flags_for_varyings_v024, 0, 23) >> 16; in V3D33_FLAT_SHADE_FLAGS_pack()
2449 struct V3D33_FLAT_SHADE_FLAGS * restrict values) in V3D33_FLAT_SHADE_FLAGS_unpack() argument
2451 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_FLAT_SHADE_FLAGS_unpack()
2452 values->flat_shade_flags_for_varyings_v024 = __gen_unpack_uint(cl, 16, 39); in V3D33_FLAT_SHADE_FLAGS_unpack()
2453 values->action_for_flat_shade_flags_of_higher_numbered_varyings = __gen_unpack_uint(cl, 14, 15); in V3D33_FLAT_SHADE_FLAGS_unpack()
2454 values->action_for_flat_shade_flags_of_lower_numbered_varyings = __gen_unpack_uint(cl, 12, 13); in V3D33_FLAT_SHADE_FLAGS_unpack()
2455 values->varying_offset_v0 = __gen_unpack_uint(cl, 8, 11); in V3D33_FLAT_SHADE_FLAGS_unpack()
2471 const struct V3D33_POINT_SIZE * restrict values) in V3D33_POINT_SIZE_pack() argument
2473 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_POINT_SIZE_pack()
2476 memcpy(&cl[1], &values->point_size, sizeof(values->point_size)); in V3D33_POINT_SIZE_pack()
2483 struct V3D33_POINT_SIZE * restrict values) in V3D33_POINT_SIZE_unpack() argument
2485 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_POINT_SIZE_unpack()
2486 values->point_size = __gen_unpack_float(cl, 8, 39); in V3D33_POINT_SIZE_unpack()
2502 const struct V3D33_LINE_WIDTH * restrict values) in V3D33_LINE_WIDTH_pack() argument
2504 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_LINE_WIDTH_pack()
2507 memcpy(&cl[1], &values->line_width, sizeof(values->line_width)); in V3D33_LINE_WIDTH_pack()
2514 struct V3D33_LINE_WIDTH * restrict values) in V3D33_LINE_WIDTH_unpack() argument
2516 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_LINE_WIDTH_unpack()
2517 values->line_width = __gen_unpack_float(cl, 8, 39); in V3D33_LINE_WIDTH_unpack()
2534 const struct V3D33_DEPTH_OFFSET * restrict values) in V3D33_DEPTH_OFFSET_pack() argument
2536 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_DEPTH_OFFSET_pack()
2538 cl[ 1] = __gen_uint(fui(values->depth_offset_factor) >> 16, 0, 15); in V3D33_DEPTH_OFFSET_pack()
2540 cl[ 2] = __gen_uint(fui(values->depth_offset_factor) >> 16, 0, 15) >> 8; in V3D33_DEPTH_OFFSET_pack()
2542 cl[ 3] = __gen_uint(fui(values->depth_offset_units) >> 16, 0, 15); in V3D33_DEPTH_OFFSET_pack()
2544 cl[ 4] = __gen_uint(fui(values->depth_offset_units) >> 16, 0, 15) >> 8; in V3D33_DEPTH_OFFSET_pack()
2552 struct V3D33_DEPTH_OFFSET * restrict values) in V3D33_DEPTH_OFFSET_unpack() argument
2554 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_DEPTH_OFFSET_unpack()
2555 values->depth_offset_units = __gen_unpack_f187(cl, 24, 39); in V3D33_DEPTH_OFFSET_unpack()
2556 values->depth_offset_factor = __gen_unpack_f187(cl, 8, 23); in V3D33_DEPTH_OFFSET_unpack()
2575 const struct V3D33_CLIP_WINDOW * restrict values) in V3D33_CLIP_WINDOW_pack() argument
2577 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_CLIP_WINDOW_pack()
2579 cl[ 1] = __gen_uint(values->clip_window_left_pixel_coordinate, 0, 15); in V3D33_CLIP_WINDOW_pack()
2581 cl[ 2] = __gen_uint(values->clip_window_left_pixel_coordinate, 0, 15) >> 8; in V3D33_CLIP_WINDOW_pack()
2583 cl[ 3] = __gen_uint(values->clip_window_bottom_pixel_coordinate, 0, 15); in V3D33_CLIP_WINDOW_pack()
2585 cl[ 4] = __gen_uint(values->clip_window_bottom_pixel_coordinate, 0, 15) >> 8; in V3D33_CLIP_WINDOW_pack()
2587 cl[ 5] = __gen_uint(values->clip_window_width_in_pixels, 0, 15); in V3D33_CLIP_WINDOW_pack()
2589 cl[ 6] = __gen_uint(values->clip_window_width_in_pixels, 0, 15) >> 8; in V3D33_CLIP_WINDOW_pack()
2591 cl[ 7] = __gen_uint(values->clip_window_height_in_pixels, 0, 15); in V3D33_CLIP_WINDOW_pack()
2593 cl[ 8] = __gen_uint(values->clip_window_height_in_pixels, 0, 15) >> 8; in V3D33_CLIP_WINDOW_pack()
2601 struct V3D33_CLIP_WINDOW * restrict values) in V3D33_CLIP_WINDOW_unpack() argument
2603 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_CLIP_WINDOW_unpack()
2604 values->clip_window_height_in_pixels = __gen_unpack_uint(cl, 56, 71); in V3D33_CLIP_WINDOW_unpack()
2605 values->clip_window_width_in_pixels = __gen_unpack_uint(cl, 40, 55); in V3D33_CLIP_WINDOW_unpack()
2606 values->clip_window_bottom_pixel_coordinate = __gen_unpack_uint(cl, 24, 39); in V3D33_CLIP_WINDOW_unpack()
2607 values->clip_window_left_pixel_coordinate = __gen_unpack_uint(cl, 8, 23); in V3D33_CLIP_WINDOW_unpack()
2624 const struct V3D33_VIEWPORT_OFFSET * restrict values) in V3D33_VIEWPORT_OFFSET_pack() argument
2626 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_VIEWPORT_OFFSET_pack()
2628 cl[ 1] = __gen_sfixed(values->viewport_centre_x_coordinate, 0, 31, 8); in V3D33_VIEWPORT_OFFSET_pack()
2630 cl[ 2] = __gen_sfixed(values->viewport_centre_x_coordinate, 0, 31, 8) >> 8; in V3D33_VIEWPORT_OFFSET_pack()
2632 cl[ 3] = __gen_sfixed(values->viewport_centre_x_coordinate, 0, 31, 8) >> 16; in V3D33_VIEWPORT_OFFSET_pack()
2634 cl[ 4] = __gen_sfixed(values->viewport_centre_x_coordinate, 0, 31, 8) >> 24; in V3D33_VIEWPORT_OFFSET_pack()
2636 cl[ 5] = __gen_sfixed(values->viewport_centre_y_coordinate, 0, 31, 8); in V3D33_VIEWPORT_OFFSET_pack()
2638 cl[ 6] = __gen_sfixed(values->viewport_centre_y_coordinate, 0, 31, 8) >> 8; in V3D33_VIEWPORT_OFFSET_pack()
2640 cl[ 7] = __gen_sfixed(values->viewport_centre_y_coordinate, 0, 31, 8) >> 16; in V3D33_VIEWPORT_OFFSET_pack()
2642 cl[ 8] = __gen_sfixed(values->viewport_centre_y_coordinate, 0, 31, 8) >> 24; in V3D33_VIEWPORT_OFFSET_pack()
2650 struct V3D33_VIEWPORT_OFFSET * restrict values) in V3D33_VIEWPORT_OFFSET_unpack() argument
2652 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_VIEWPORT_OFFSET_unpack()
2653 values->viewport_centre_y_coordinate = __gen_unpack_sfixed(cl, 40, 71, 8); in V3D33_VIEWPORT_OFFSET_unpack()
2654 values->viewport_centre_x_coordinate = __gen_unpack_sfixed(cl, 8, 39, 8); in V3D33_VIEWPORT_OFFSET_unpack()
2671 … const struct V3D33_CLIPPER_Z_MIN_MAX_CLIPPING_PLANES * restrict values) in V3D33_CLIPPER_Z_MIN_MAX_CLIPPING_PLANES_pack() argument
2673 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_CLIPPER_Z_MIN_MAX_CLIPPING_PLANES_pack()
2676 memcpy(&cl[1], &values->minimum_zw, sizeof(values->minimum_zw)); in V3D33_CLIPPER_Z_MIN_MAX_CLIPPING_PLANES_pack()
2678 memcpy(&cl[5], &values->maximum_zw, sizeof(values->maximum_zw)); in V3D33_CLIPPER_Z_MIN_MAX_CLIPPING_PLANES_pack()
2685 … struct V3D33_CLIPPER_Z_MIN_MAX_CLIPPING_PLANES * restrict values) in V3D33_CLIPPER_Z_MIN_MAX_CLIPPING_PLANES_unpack() argument
2687 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_CLIPPER_Z_MIN_MAX_CLIPPING_PLANES_unpack()
2688 values->maximum_zw = __gen_unpack_float(cl, 40, 71); in V3D33_CLIPPER_Z_MIN_MAX_CLIPPING_PLANES_unpack()
2689 values->minimum_zw = __gen_unpack_float(cl, 8, 39); in V3D33_CLIPPER_Z_MIN_MAX_CLIPPING_PLANES_unpack()
2706 const struct V3D33_CLIPPER_XY_SCALING * restrict values) in V3D33_CLIPPER_XY_SCALING_pack() argument
2708 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_CLIPPER_XY_SCALING_pack()
2711 …memcpy(&cl[1], &values->viewport_half_width_in_1_256th_of_pixel, sizeof(values->viewport_half_widt… in V3D33_CLIPPER_XY_SCALING_pack()
2713 …memcpy(&cl[5], &values->viewport_half_height_in_1_256th_of_pixel, sizeof(values->viewport_half_hei… in V3D33_CLIPPER_XY_SCALING_pack()
2720 struct V3D33_CLIPPER_XY_SCALING * restrict values) in V3D33_CLIPPER_XY_SCALING_unpack() argument
2722 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_CLIPPER_XY_SCALING_unpack()
2723 values->viewport_half_height_in_1_256th_of_pixel = __gen_unpack_float(cl, 40, 71); in V3D33_CLIPPER_XY_SCALING_unpack()
2724 values->viewport_half_width_in_1_256th_of_pixel = __gen_unpack_float(cl, 8, 39); in V3D33_CLIPPER_XY_SCALING_unpack()
2741 … const struct V3D33_CLIPPER_Z_SCALE_AND_OFFSET * restrict values) in V3D33_CLIPPER_Z_SCALE_AND_OFFSET_pack() argument
2743 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_CLIPPER_Z_SCALE_AND_OFFSET_pack()
2746 memcpy(&cl[1], &values->viewport_z_scale_zc_to_zs, sizeof(values->viewport_z_scale_zc_to_zs)); in V3D33_CLIPPER_Z_SCALE_AND_OFFSET_pack()
2748 memcpy(&cl[5], &values->viewport_z_offset_zc_to_zs, sizeof(values->viewport_z_offset_zc_to_zs)); in V3D33_CLIPPER_Z_SCALE_AND_OFFSET_pack()
2755 struct V3D33_CLIPPER_Z_SCALE_AND_OFFSET * restrict values) in V3D33_CLIPPER_Z_SCALE_AND_OFFSET_unpack() argument
2757 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_CLIPPER_Z_SCALE_AND_OFFSET_unpack()
2758 values->viewport_z_offset_zc_to_zs = __gen_unpack_float(cl, 40, 71); in V3D33_CLIPPER_Z_SCALE_AND_OFFSET_unpack()
2759 values->viewport_z_scale_zc_to_zs = __gen_unpack_float(cl, 8, 39); in V3D33_CLIPPER_Z_SCALE_AND_OFFSET_unpack()
2793 … const struct V3D33_TILE_BINNING_MODE_CFG_PART1 * restrict values) in V3D33_TILE_BINNING_MODE_CFG_PART1_pack() argument
2795 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2797 __gen_emit_reloc(data, &values->tile_state_data_array_base_address); in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2798 cl[ 1] = __gen_address_offset(&values->tile_state_data_array_base_address) | in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2799 __gen_uint(values->tile_allocation_block_size, 4, 5) | in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2800 __gen_uint(values->tile_allocation_initial_block_size, 2, 3) | in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2801 __gen_uint(values->auto_initialize_tile_state_data_array, 1, 1) | in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2802 __gen_uint(values->sub_id, 0, 0); in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2804 cl[ 2] = __gen_address_offset(&values->tile_state_data_array_base_address) >> 8; in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2806 cl[ 3] = __gen_address_offset(&values->tile_state_data_array_base_address) >> 16; in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2808 cl[ 4] = __gen_address_offset(&values->tile_state_data_array_base_address) >> 24; in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2810 cl[ 5] = __gen_uint(values->width_in_tiles, 0, 11); in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2812 cl[ 6] = __gen_uint(values->height_in_tiles, 4, 15) | in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2813 __gen_uint(values->width_in_tiles, 0, 11) >> 8; in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2815 cl[ 7] = __gen_uint(values->height_in_tiles, 4, 15) >> 8; in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2817 cl[ 8] = __gen_uint(values->double_buffer_in_non_ms_mode, 7, 7) | in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2818 __gen_uint(values->multisample_mode_4x, 6, 6) | in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2819 __gen_uint(values->maximum_bpp_of_all_render_targets, 4, 5) | in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2820 __gen_uint(values->number_of_render_targets, 0, 3); in V3D33_TILE_BINNING_MODE_CFG_PART1_pack()
2828 struct V3D33_TILE_BINNING_MODE_CFG_PART1 * restrict values) in V3D33_TILE_BINNING_MODE_CFG_PART1_unpack() argument
2830 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_TILE_BINNING_MODE_CFG_PART1_unpack()
2831 values->double_buffer_in_non_ms_mode = __gen_unpack_uint(cl, 71, 71); in V3D33_TILE_BINNING_MODE_CFG_PART1_unpack()
2832 values->multisample_mode_4x = __gen_unpack_uint(cl, 70, 70); in V3D33_TILE_BINNING_MODE_CFG_PART1_unpack()
2833 values->maximum_bpp_of_all_render_targets = __gen_unpack_uint(cl, 68, 69); in V3D33_TILE_BINNING_MODE_CFG_PART1_unpack()
2834 values->number_of_render_targets = __gen_unpack_uint(cl, 64, 67); in V3D33_TILE_BINNING_MODE_CFG_PART1_unpack()
2835 values->height_in_tiles = __gen_unpack_uint(cl, 52, 63); in V3D33_TILE_BINNING_MODE_CFG_PART1_unpack()
2836 values->width_in_tiles = __gen_unpack_uint(cl, 40, 51); in V3D33_TILE_BINNING_MODE_CFG_PART1_unpack()
2837 values->tile_state_data_array_base_address = __gen_unpack_address(cl, 14, 39); in V3D33_TILE_BINNING_MODE_CFG_PART1_unpack()
2838 values->tile_allocation_block_size = __gen_unpack_uint(cl, 12, 13); in V3D33_TILE_BINNING_MODE_CFG_PART1_unpack()
2839 values->tile_allocation_initial_block_size = __gen_unpack_uint(cl, 10, 11); in V3D33_TILE_BINNING_MODE_CFG_PART1_unpack()
2840 values->auto_initialize_tile_state_data_array = __gen_unpack_uint(cl, 9, 9); in V3D33_TILE_BINNING_MODE_CFG_PART1_unpack()
2841 values->sub_id = __gen_unpack_uint(cl, 8, 8); in V3D33_TILE_BINNING_MODE_CFG_PART1_unpack()
2860 … const struct V3D33_TILE_BINNING_MODE_CFG_PART2 * restrict values) in V3D33_TILE_BINNING_MODE_CFG_PART2_pack() argument
2862 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_TILE_BINNING_MODE_CFG_PART2_pack()
2864 cl[ 1] = __gen_uint(values->tile_allocation_memory_size, 0, 31) | in V3D33_TILE_BINNING_MODE_CFG_PART2_pack()
2865 __gen_uint(values->sub_id, 0, 0); in V3D33_TILE_BINNING_MODE_CFG_PART2_pack()
2867 cl[ 2] = __gen_uint(values->tile_allocation_memory_size, 0, 31) >> 8; in V3D33_TILE_BINNING_MODE_CFG_PART2_pack()
2869 cl[ 3] = __gen_uint(values->tile_allocation_memory_size, 0, 31) >> 16; in V3D33_TILE_BINNING_MODE_CFG_PART2_pack()
2871 cl[ 4] = __gen_uint(values->tile_allocation_memory_size, 0, 31) >> 24; in V3D33_TILE_BINNING_MODE_CFG_PART2_pack()
2873 __gen_emit_reloc(data, &values->tile_allocation_memory_address); in V3D33_TILE_BINNING_MODE_CFG_PART2_pack()
2874 cl[ 5] = __gen_address_offset(&values->tile_allocation_memory_address); in V3D33_TILE_BINNING_MODE_CFG_PART2_pack()
2876 cl[ 6] = __gen_address_offset(&values->tile_allocation_memory_address) >> 8; in V3D33_TILE_BINNING_MODE_CFG_PART2_pack()
2878 cl[ 7] = __gen_address_offset(&values->tile_allocation_memory_address) >> 16; in V3D33_TILE_BINNING_MODE_CFG_PART2_pack()
2880 cl[ 8] = __gen_address_offset(&values->tile_allocation_memory_address) >> 24; in V3D33_TILE_BINNING_MODE_CFG_PART2_pack()
2888 struct V3D33_TILE_BINNING_MODE_CFG_PART2 * restrict values) in V3D33_TILE_BINNING_MODE_CFG_PART2_unpack() argument
2890 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_TILE_BINNING_MODE_CFG_PART2_unpack()
2891 values->tile_allocation_memory_address = __gen_unpack_address(cl, 40, 71); in V3D33_TILE_BINNING_MODE_CFG_PART2_unpack()
2892 values->tile_allocation_memory_size = __gen_unpack_uint(cl, 8, 39); in V3D33_TILE_BINNING_MODE_CFG_PART2_unpack()
2893 values->sub_id = __gen_unpack_uint(cl, 8, 8); in V3D33_TILE_BINNING_MODE_CFG_PART2_unpack()
2926 … const struct V3D33_TILE_RENDERING_MODE_CFG_COMMON * restrict values) in V3D33_TILE_RENDERING_MODE_CFG_COMMON_pack() argument
2928 assert(values->number_of_render_targets >= 1); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_pack()
2929 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_pack()
2931 cl[ 1] = __gen_uint(values->number_of_render_targets - 1, 4, 7) | in V3D33_TILE_RENDERING_MODE_CFG_COMMON_pack()
2932 __gen_uint(values->sub_id, 0, 3); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_pack()
2934 cl[ 2] = __gen_uint(values->image_width_pixels, 0, 15); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_pack()
2936 cl[ 3] = __gen_uint(values->image_width_pixels, 0, 15) >> 8; in V3D33_TILE_RENDERING_MODE_CFG_COMMON_pack()
2938 cl[ 4] = __gen_uint(values->image_height_pixels, 0, 15); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_pack()
2940 cl[ 5] = __gen_uint(values->image_height_pixels, 0, 15) >> 8; in V3D33_TILE_RENDERING_MODE_CFG_COMMON_pack()
2942 cl[ 6] = __gen_uint(values->early_z_disable, 6, 6) | in V3D33_TILE_RENDERING_MODE_CFG_COMMON_pack()
2943 __gen_uint(values->early_z_test_and_update_direction, 5, 5) | in V3D33_TILE_RENDERING_MODE_CFG_COMMON_pack()
2944 __gen_uint(values->double_buffer_in_non_ms_mode, 3, 3) | in V3D33_TILE_RENDERING_MODE_CFG_COMMON_pack()
2945 __gen_uint(values->multisample_mode_4x, 2, 2) | in V3D33_TILE_RENDERING_MODE_CFG_COMMON_pack()
2946 __gen_uint(values->maximum_bpp_of_all_render_targets, 0, 1); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_pack()
2948 cl[ 7] = __gen_uint(values->enable_z_store, 7, 7) | in V3D33_TILE_RENDERING_MODE_CFG_COMMON_pack()
2949 __gen_uint(values->enable_stencil_store, 6, 6); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_pack()
2951 cl[ 8] = __gen_uint(values->disable_render_target_stores, 0, 7); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_pack()
2959 … struct V3D33_TILE_RENDERING_MODE_CFG_COMMON * restrict values) in V3D33_TILE_RENDERING_MODE_CFG_COMMON_unpack() argument
2961 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_unpack()
2962 values->disable_render_target_stores = __gen_unpack_uint(cl, 64, 71); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_unpack()
2963 values->enable_z_store = __gen_unpack_uint(cl, 63, 63); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_unpack()
2964 values->enable_stencil_store = __gen_unpack_uint(cl, 62, 62); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_unpack()
2965 values->early_z_disable = __gen_unpack_uint(cl, 54, 54); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_unpack()
2966 values->early_z_test_and_update_direction = __gen_unpack_uint(cl, 53, 53); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_unpack()
2967 values->double_buffer_in_non_ms_mode = __gen_unpack_uint(cl, 51, 51); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_unpack()
2968 values->multisample_mode_4x = __gen_unpack_uint(cl, 50, 50); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_unpack()
2969 values->maximum_bpp_of_all_render_targets = __gen_unpack_uint(cl, 48, 49); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_unpack()
2970 values->image_height_pixels = __gen_unpack_uint(cl, 32, 47); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_unpack()
2971 values->image_width_pixels = __gen_unpack_uint(cl, 16, 31); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_unpack()
2972 values->number_of_render_targets = __gen_unpack_uint(cl, 12, 15) + 1; in V3D33_TILE_RENDERING_MODE_CFG_COMMON_unpack()
2973 values->sub_id = __gen_unpack_uint(cl, 8, 11); in V3D33_TILE_RENDERING_MODE_CFG_COMMON_unpack()
3000 … const struct V3D33_TILE_RENDERING_MODE_CFG_COLOR * restrict values) in V3D33_TILE_RENDERING_MODE_CFG_COLOR_pack() argument
3002 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_pack()
3004 cl[ 1] = __gen_uint(values->render_target_number, 4, 7) | in V3D33_TILE_RENDERING_MODE_CFG_COLOR_pack()
3005 __gen_uint(values->sub_id, 0, 3); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_pack()
3007 cl[ 2] = __gen_uint(values->decimate_mode, 6, 7) | in V3D33_TILE_RENDERING_MODE_CFG_COLOR_pack()
3008 __gen_uint(values->internal_type, 2, 5) | in V3D33_TILE_RENDERING_MODE_CFG_COLOR_pack()
3009 __gen_uint(values->internal_bpp, 0, 1); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_pack()
3011 cl[ 3] = __gen_uint(values->dither_mode, 6, 7) | in V3D33_TILE_RENDERING_MODE_CFG_COLOR_pack()
3012 __gen_uint(values->output_image_format, 0, 5); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_pack()
3014 cl[ 4] = __gen_uint(values->pad, 4, 7) | in V3D33_TILE_RENDERING_MODE_CFG_COLOR_pack()
3015 __gen_uint(values->flip_y, 3, 3) | in V3D33_TILE_RENDERING_MODE_CFG_COLOR_pack()
3016 __gen_uint(values->memory_format, 0, 2); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_pack()
3018 __gen_emit_reloc(data, &values->address); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_pack()
3019 cl[ 5] = __gen_address_offset(&values->address); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_pack()
3021 cl[ 6] = __gen_address_offset(&values->address) >> 8; in V3D33_TILE_RENDERING_MODE_CFG_COLOR_pack()
3023 cl[ 7] = __gen_address_offset(&values->address) >> 16; in V3D33_TILE_RENDERING_MODE_CFG_COLOR_pack()
3025 cl[ 8] = __gen_address_offset(&values->address) >> 24; in V3D33_TILE_RENDERING_MODE_CFG_COLOR_pack()
3033 … struct V3D33_TILE_RENDERING_MODE_CFG_COLOR * restrict values) in V3D33_TILE_RENDERING_MODE_CFG_COLOR_unpack() argument
3035 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_unpack()
3036 values->address = __gen_unpack_address(cl, 40, 71); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_unpack()
3037 values->pad = __gen_unpack_uint(cl, 36, 39); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_unpack()
3038 values->flip_y = __gen_unpack_uint(cl, 35, 35); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_unpack()
3039 values->memory_format = __gen_unpack_uint(cl, 32, 34); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_unpack()
3040 values->dither_mode = __gen_unpack_uint(cl, 30, 31); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_unpack()
3041 values->output_image_format = __gen_unpack_uint(cl, 24, 29); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_unpack()
3042 values->decimate_mode = __gen_unpack_uint(cl, 22, 23); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_unpack()
3043 values->internal_type = __gen_unpack_uint(cl, 18, 21); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_unpack()
3044 values->internal_bpp = __gen_unpack_uint(cl, 16, 17); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_unpack()
3045 values->render_target_number = __gen_unpack_uint(cl, 12, 15); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_unpack()
3046 values->sub_id = __gen_unpack_uint(cl, 8, 11); in V3D33_TILE_RENDERING_MODE_CFG_COLOR_unpack()
3072 … const struct V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL * restrict values) in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_pack() argument
3074 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_pack()
3076 cl[ 1] = __gen_uint(values->z_stencil_id, 4, 7) | in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_pack()
3077 __gen_uint(values->sub_id, 0, 3); in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_pack()
3079 cl[ 2] = __gen_uint(values->decimate_mode, 6, 7) | in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_pack()
3080 __gen_uint(values->internal_type, 2, 5) | in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_pack()
3081 __gen_uint(values->internal_bpp_ignored, 0, 1); in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_pack()
3083 cl[ 3] = __gen_uint(values->memory_format, 6, 8) | in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_pack()
3084 __gen_uint(values->output_image_format, 0, 5); in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_pack()
3086 cl[ 4] = __gen_uint(values->padded_height_of_output_image_in_uif_blocks, 1, 13) | in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_pack()
3087 __gen_uint(values->memory_format, 6, 8) >> 8; in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_pack()
3089 __gen_emit_reloc(data, &values->address); in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_pack()
3090 cl[ 5] = __gen_address_offset(&values->address) | in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_pack()
3091 __gen_uint(values->padded_height_of_output_image_in_uif_blocks, 1, 13) >> 8; in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_pack()
3093 cl[ 6] = __gen_address_offset(&values->address) >> 8; in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_pack()
3095 cl[ 7] = __gen_address_offset(&values->address) >> 16; in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_pack()
3097 cl[ 8] = __gen_address_offset(&values->address) >> 24; in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_pack()
3105 … struct V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL * restrict values) in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_unpack() argument
3107 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_unpack()
3108 values->address = __gen_unpack_address(cl, 46, 71); in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_unpack()
3109 values->padded_height_of_output_image_in_uif_blocks = __gen_unpack_uint(cl, 33, 45); in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_unpack()
3110 values->memory_format = __gen_unpack_uint(cl, 30, 32); in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_unpack()
3111 values->output_image_format = __gen_unpack_uint(cl, 24, 29); in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_unpack()
3112 values->decimate_mode = __gen_unpack_uint(cl, 22, 23); in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_unpack()
3113 values->internal_type = __gen_unpack_uint(cl, 18, 21); in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_unpack()
3114 values->internal_bpp_ignored = __gen_unpack_uint(cl, 16, 17); in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_unpack()
3115 values->z_stencil_id = __gen_unpack_uint(cl, 12, 15); in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_unpack()
3116 values->sub_id = __gen_unpack_uint(cl, 8, 11); in V3D33_TILE_RENDERING_MODE_CFG_Z_STENCIL_unpack()
3136 … const struct V3D33_TILE_RENDERING_MODE_CFG_ZS_CLEAR_VALUES * restrict values) in V3D33_TILE_RENDERING_MODE_CFG_ZS_CLEAR_VALUES_pack() argument
3138 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_TILE_RENDERING_MODE_CFG_ZS_CLEAR_VALUES_pack()
3140 cl[ 1] = __gen_uint(values->sub_id, 0, 3); in V3D33_TILE_RENDERING_MODE_CFG_ZS_CLEAR_VALUES_pack()
3142 cl[ 2] = __gen_uint(values->stencil_clear_value, 0, 7); in V3D33_TILE_RENDERING_MODE_CFG_ZS_CLEAR_VALUES_pack()
3145 memcpy(&cl[3], &values->z_clear_value, sizeof(values->z_clear_value)); in V3D33_TILE_RENDERING_MODE_CFG_ZS_CLEAR_VALUES_pack()
3146 cl[ 7] = __gen_uint(values->unused, 0, 15); in V3D33_TILE_RENDERING_MODE_CFG_ZS_CLEAR_VALUES_pack()
3148 cl[ 8] = __gen_uint(values->unused, 0, 15) >> 8; in V3D33_TILE_RENDERING_MODE_CFG_ZS_CLEAR_VALUES_pack()
3156 … struct V3D33_TILE_RENDERING_MODE_CFG_ZS_CLEAR_VALUES * restrict values) in V3D33_TILE_RENDERING_MODE_CFG_ZS_CLEAR_VALUES_unpack() argument
3158 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_TILE_RENDERING_MODE_CFG_ZS_CLEAR_VALUES_unpack()
3159 values->unused = __gen_unpack_uint(cl, 56, 71); in V3D33_TILE_RENDERING_MODE_CFG_ZS_CLEAR_VALUES_unpack()
3160 values->z_clear_value = __gen_unpack_float(cl, 24, 55); in V3D33_TILE_RENDERING_MODE_CFG_ZS_CLEAR_VALUES_unpack()
3161 values->stencil_clear_value = __gen_unpack_uint(cl, 16, 23); in V3D33_TILE_RENDERING_MODE_CFG_ZS_CLEAR_VALUES_unpack()
3162 values->sub_id = __gen_unpack_uint(cl, 8, 11); in V3D33_TILE_RENDERING_MODE_CFG_ZS_CLEAR_VALUES_unpack()
3182 … const struct V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART1 * restrict values) in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART1_pack() argument
3184 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART1_pack()
3186 cl[ 1] = __gen_uint(values->render_target_number, 4, 7) | in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART1_pack()
3187 __gen_uint(values->sub_id, 0, 3); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART1_pack()
3190 memcpy(&cl[2], &values->clear_color_low_32_bits, sizeof(values->clear_color_low_32_bits)); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART1_pack()
3191 cl[ 6] = __gen_uint(values->clear_color_next_24_bits, 0, 23); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART1_pack()
3193 cl[ 7] = __gen_uint(values->clear_color_next_24_bits, 0, 23) >> 8; in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART1_pack()
3195 cl[ 8] = __gen_uint(values->clear_color_next_24_bits, 0, 23) >> 16; in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART1_pack()
3203 … struct V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART1 * restrict values) in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART1_unpack() argument
3205 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART1_unpack()
3206 values->clear_color_next_24_bits = __gen_unpack_uint(cl, 48, 71); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART1_unpack()
3207 values->clear_color_low_32_bits = __gen_unpack_uint(cl, 16, 47); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART1_unpack()
3208 values->render_target_number = __gen_unpack_uint(cl, 12, 15); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART1_unpack()
3209 values->sub_id = __gen_unpack_uint(cl, 8, 11); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART1_unpack()
3229 … const struct V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART2 * restrict values) in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART2_pack() argument
3231 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART2_pack()
3233 cl[ 1] = __gen_uint(values->render_target_number, 4, 7) | in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART2_pack()
3234 __gen_uint(values->sub_id, 0, 3); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART2_pack()
3237 … memcpy(&cl[2], &values->clear_color_mid_low_32_bits, sizeof(values->clear_color_mid_low_32_bits)); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART2_pack()
3238 cl[ 6] = __gen_uint(values->clear_color_mid_high_24_bits, 0, 23); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART2_pack()
3240 cl[ 7] = __gen_uint(values->clear_color_mid_high_24_bits, 0, 23) >> 8; in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART2_pack()
3242 cl[ 8] = __gen_uint(values->clear_color_mid_high_24_bits, 0, 23) >> 16; in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART2_pack()
3250 … struct V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART2 * restrict values) in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART2_unpack() argument
3252 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART2_unpack()
3253 values->clear_color_mid_high_24_bits = __gen_unpack_uint(cl, 48, 71); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART2_unpack()
3254 values->clear_color_mid_low_32_bits = __gen_unpack_uint(cl, 16, 47); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART2_unpack()
3255 values->render_target_number = __gen_unpack_uint(cl, 12, 15); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART2_unpack()
3256 values->sub_id = __gen_unpack_uint(cl, 8, 11); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART2_unpack()
3278 … const struct V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3 * restrict values) in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_pack() argument
3280 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_pack()
3282 cl[ 1] = __gen_uint(values->render_target_number, 4, 7) | in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_pack()
3283 __gen_uint(values->sub_id, 0, 3); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_pack()
3285 cl[ 2] = __gen_uint(values->clear_color_high_16_bits, 0, 15); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_pack()
3287 cl[ 3] = __gen_uint(values->clear_color_high_16_bits, 0, 15) >> 8; in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_pack()
3289 cl[ 4] = __gen_uint(values->raster_row_stride_or_image_height_in_pixels, 0, 15); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_pack()
3291 cl[ 5] = __gen_uint(values->raster_row_stride_or_image_height_in_pixels, 0, 15) >> 8; in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_pack()
3293 cl[ 6] = __gen_uint(values->uif_padded_height_in_uif_blocks, 0, 12); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_pack()
3295 cl[ 7] = __gen_uint(values->pad, 5, 15) | in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_pack()
3296 __gen_uint(values->uif_padded_height_in_uif_blocks, 0, 12) >> 8; in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_pack()
3298 cl[ 8] = __gen_uint(values->pad, 5, 15) >> 8; in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_pack()
3306 … struct V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3 * restrict values) in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_unpack() argument
3308 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_unpack()
3309 values->pad = __gen_unpack_uint(cl, 61, 71); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_unpack()
3310 values->uif_padded_height_in_uif_blocks = __gen_unpack_uint(cl, 48, 60); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_unpack()
3311 values->raster_row_stride_or_image_height_in_pixels = __gen_unpack_uint(cl, 32, 47); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_unpack()
3312 values->clear_color_high_16_bits = __gen_unpack_uint(cl, 16, 31); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_unpack()
3313 values->render_target_number = __gen_unpack_uint(cl, 12, 15); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_unpack()
3314 values->sub_id = __gen_unpack_uint(cl, 8, 11); in V3D33_TILE_RENDERING_MODE_CFG_CLEAR_COLORS_PART3_unpack()
3331 const struct V3D33_TILE_COORDINATES * restrict values) in V3D33_TILE_COORDINATES_pack() argument
3333 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_TILE_COORDINATES_pack()
3335 cl[ 1] = __gen_uint(values->tile_column_number, 0, 11); in V3D33_TILE_COORDINATES_pack()
3337 cl[ 2] = __gen_uint(values->tile_row_number, 4, 15) | in V3D33_TILE_COORDINATES_pack()
3338 __gen_uint(values->tile_column_number, 0, 11) >> 8; in V3D33_TILE_COORDINATES_pack()
3340 cl[ 3] = __gen_uint(values->tile_row_number, 4, 15) >> 8; in V3D33_TILE_COORDINATES_pack()
3348 struct V3D33_TILE_COORDINATES * restrict values) in V3D33_TILE_COORDINATES_unpack() argument
3350 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_TILE_COORDINATES_unpack()
3351 values->tile_row_number = __gen_unpack_uint(cl, 20, 31); in V3D33_TILE_COORDINATES_unpack()
3352 values->tile_column_number = __gen_unpack_uint(cl, 8, 19); in V3D33_TILE_COORDINATES_unpack()
3376 … const struct V3D33_MULTICORE_RENDERING_SUPERTILE_CFG * restrict values) in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_pack() argument
3378 assert(values->number_of_bin_tile_lists >= 1); in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_pack()
3379 assert(values->supertile_height_in_tiles >= 1); in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_pack()
3380 assert(values->supertile_width_in_tiles >= 1); in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_pack()
3381 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_pack()
3383 cl[ 1] = __gen_uint(values->supertile_width_in_tiles - 1, 0, 7); in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_pack()
3385 cl[ 2] = __gen_uint(values->supertile_height_in_tiles - 1, 0, 7); in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_pack()
3387 cl[ 3] = __gen_uint(values->total_frame_width_in_supertiles, 0, 7); in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_pack()
3389 cl[ 4] = __gen_uint(values->total_frame_height_in_supertiles, 0, 7); in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_pack()
3391 cl[ 5] = __gen_uint(values->total_frame_width_in_tiles, 0, 11); in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_pack()
3393 cl[ 6] = __gen_uint(values->total_frame_height_in_tiles, 4, 15) | in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_pack()
3394 __gen_uint(values->total_frame_width_in_tiles, 0, 11) >> 8; in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_pack()
3396 cl[ 7] = __gen_uint(values->total_frame_height_in_tiles, 4, 15) >> 8; in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_pack()
3398 cl[ 8] = __gen_uint(values->number_of_bin_tile_lists - 1, 5, 7) | in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_pack()
3399 __gen_uint(values->supertile_raster_order, 4, 4) | in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_pack()
3400 __gen_uint(values->multicore_enable, 0, 0); in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_pack()
3408 … struct V3D33_MULTICORE_RENDERING_SUPERTILE_CFG * restrict values) in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_unpack() argument
3410 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_unpack()
3411 values->number_of_bin_tile_lists = __gen_unpack_uint(cl, 69, 71) + 1; in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_unpack()
3412 values->supertile_raster_order = __gen_unpack_uint(cl, 68, 68); in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_unpack()
3413 values->multicore_enable = __gen_unpack_uint(cl, 64, 64); in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_unpack()
3414 values->total_frame_height_in_tiles = __gen_unpack_uint(cl, 52, 63); in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_unpack()
3415 values->total_frame_width_in_tiles = __gen_unpack_uint(cl, 40, 51); in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_unpack()
3416 values->total_frame_height_in_supertiles = __gen_unpack_uint(cl, 32, 39); in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_unpack()
3417 values->total_frame_width_in_supertiles = __gen_unpack_uint(cl, 24, 31); in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_unpack()
3418 values->supertile_height_in_tiles = __gen_unpack_uint(cl, 16, 23) + 1; in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_unpack()
3419 values->supertile_width_in_tiles = __gen_unpack_uint(cl, 8, 15) + 1; in V3D33_MULTICORE_RENDERING_SUPERTILE_CFG_unpack()
3436 … const struct V3D33_MULTICORE_RENDERING_TILE_LIST_SET_BASE * restrict values) in V3D33_MULTICORE_RENDERING_TILE_LIST_SET_BASE_pack() argument
3438 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_MULTICORE_RENDERING_TILE_LIST_SET_BASE_pack()
3440 __gen_emit_reloc(data, &values->address); in V3D33_MULTICORE_RENDERING_TILE_LIST_SET_BASE_pack()
3441 cl[ 1] = __gen_address_offset(&values->address) | in V3D33_MULTICORE_RENDERING_TILE_LIST_SET_BASE_pack()
3442 __gen_uint(values->tile_list_set_number, 0, 3); in V3D33_MULTICORE_RENDERING_TILE_LIST_SET_BASE_pack()
3444 cl[ 2] = __gen_address_offset(&values->address) >> 8; in V3D33_MULTICORE_RENDERING_TILE_LIST_SET_BASE_pack()
3446 cl[ 3] = __gen_address_offset(&values->address) >> 16; in V3D33_MULTICORE_RENDERING_TILE_LIST_SET_BASE_pack()
3448 cl[ 4] = __gen_address_offset(&values->address) >> 24; in V3D33_MULTICORE_RENDERING_TILE_LIST_SET_BASE_pack()
3456 … struct V3D33_MULTICORE_RENDERING_TILE_LIST_SET_BASE * restrict values) in V3D33_MULTICORE_RENDERING_TILE_LIST_SET_BASE_unpack() argument
3458 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_MULTICORE_RENDERING_TILE_LIST_SET_BASE_unpack()
3459 values->address = __gen_unpack_address(cl, 14, 39); in V3D33_MULTICORE_RENDERING_TILE_LIST_SET_BASE_unpack()
3460 values->tile_list_set_number = __gen_unpack_uint(cl, 8, 11); in V3D33_MULTICORE_RENDERING_TILE_LIST_SET_BASE_unpack()
3475 const struct V3D33_TILE_COORDINATES_IMPLICIT * restrict values) in V3D33_TILE_COORDINATES_IMPLICIT_pack() argument
3477 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_TILE_COORDINATES_IMPLICIT_pack()
3485 struct V3D33_TILE_COORDINATES_IMPLICIT * restrict values) in V3D33_TILE_COORDINATES_IMPLICIT_unpack() argument
3487 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_TILE_COORDINATES_IMPLICIT_unpack()
3507 … const struct V3D33_TILE_LIST_INITIAL_BLOCK_SIZE * restrict values) in V3D33_TILE_LIST_INITIAL_BLOCK_SIZE_pack() argument
3509 cl[ 0] = __gen_uint(values->opcode, 0, 7); in V3D33_TILE_LIST_INITIAL_BLOCK_SIZE_pack()
3511 cl[ 1] = __gen_uint(values->use_auto_chained_tile_lists, 2, 2) | in V3D33_TILE_LIST_INITIAL_BLOCK_SIZE_pack()
3512 __gen_uint(values->size_of_first_block_in_chained_tile_lists, 0, 1); in V3D33_TILE_LIST_INITIAL_BLOCK_SIZE_pack()
3520 … struct V3D33_TILE_LIST_INITIAL_BLOCK_SIZE * restrict values) in V3D33_TILE_LIST_INITIAL_BLOCK_SIZE_unpack() argument
3522 values->opcode = __gen_unpack_uint(cl, 0, 7); in V3D33_TILE_LIST_INITIAL_BLOCK_SIZE_unpack()
3523 values->use_auto_chained_tile_lists = __gen_unpack_uint(cl, 10, 10); in V3D33_TILE_LIST_INITIAL_BLOCK_SIZE_unpack()
3524 values->size_of_first_block_in_chained_tile_lists = __gen_unpack_uint(cl, 8, 9); in V3D33_TILE_LIST_INITIAL_BLOCK_SIZE_unpack()
3569 const struct V3D33_GL_SHADER_STATE_RECORD * restrict values) in V3D33_GL_SHADER_STATE_RECORD_pack() argument
3571 cl[ 0] = __gen_uint(values->point_size_in_shaded_vertex_data, 0, 0) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3572 __gen_uint(values->enable_clipping, 1, 1) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3573 __gen_uint(values->vertex_id_read_by_coordinate_shader, 2, 2) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3574 __gen_uint(values->instance_id_read_by_coordinate_shader, 3, 3) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3575 __gen_uint(values->vertex_id_read_by_vertex_shader, 4, 4) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3576 __gen_uint(values->instance_id_read_by_vertex_shader, 5, 5) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3577 __gen_uint(values->fragment_shader_does_z_writes, 6, 6) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3578 __gen_uint(values->turn_off_early_z_test, 7, 7); in V3D33_GL_SHADER_STATE_RECORD_pack()
3580 cl[ 1] = __gen_uint(values->coordinate_shader_has_separate_input_and_output_vpm_blocks, 0, 0) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3581 __gen_uint(values->vertex_shader_has_separate_input_and_output_vpm_blocks, 1, 1) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3582 … __gen_uint(values->fragment_shader_uses_real_pixel_centre_w_in_addition_to_centroid_w2, 2, 2); in V3D33_GL_SHADER_STATE_RECORD_pack()
3584 cl[ 2] = __gen_uint(values->number_of_varyings_in_fragment_shader, 0, 7); in V3D33_GL_SHADER_STATE_RECORD_pack()
3587 cl[ 4] = __gen_uint(values->coordinate_shader_output_vpm_segment_size, 0, 7); in V3D33_GL_SHADER_STATE_RECORD_pack()
3589 cl[ 5] = __gen_uint(values->coordinate_shader_input_vpm_segment_size, 0, 7); in V3D33_GL_SHADER_STATE_RECORD_pack()
3591 cl[ 6] = __gen_uint(values->vertex_shader_output_vpm_segment_size, 0, 7); in V3D33_GL_SHADER_STATE_RECORD_pack()
3593 cl[ 7] = __gen_uint(values->vertex_shader_input_vpm_segment_size, 0, 7); in V3D33_GL_SHADER_STATE_RECORD_pack()
3595 __gen_emit_reloc(data, &values->address_of_default_attribute_values); in V3D33_GL_SHADER_STATE_RECORD_pack()
3596 cl[ 8] = __gen_address_offset(&values->address_of_default_attribute_values); in V3D33_GL_SHADER_STATE_RECORD_pack()
3598 cl[ 9] = __gen_address_offset(&values->address_of_default_attribute_values) >> 8; in V3D33_GL_SHADER_STATE_RECORD_pack()
3600 cl[10] = __gen_address_offset(&values->address_of_default_attribute_values) >> 16; in V3D33_GL_SHADER_STATE_RECORD_pack()
3602 cl[11] = __gen_address_offset(&values->address_of_default_attribute_values) >> 24; in V3D33_GL_SHADER_STATE_RECORD_pack()
3604 __gen_emit_reloc(data, &values->fragment_shader_code_address); in V3D33_GL_SHADER_STATE_RECORD_pack()
3605 cl[12] = __gen_address_offset(&values->fragment_shader_code_address) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3606 __gen_uint(values->fragment_shader_2_way_threadable, 0, 0) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3607 __gen_uint(values->fragment_shader_4_way_threadable, 1, 1) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3608 __gen_uint(values->fragment_shader_propagate_nans, 2, 2); in V3D33_GL_SHADER_STATE_RECORD_pack()
3610 cl[13] = __gen_address_offset(&values->fragment_shader_code_address) >> 8; in V3D33_GL_SHADER_STATE_RECORD_pack()
3612 cl[14] = __gen_address_offset(&values->fragment_shader_code_address) >> 16; in V3D33_GL_SHADER_STATE_RECORD_pack()
3614 cl[15] = __gen_address_offset(&values->fragment_shader_code_address) >> 24; in V3D33_GL_SHADER_STATE_RECORD_pack()
3616 __gen_emit_reloc(data, &values->fragment_shader_uniforms_address); in V3D33_GL_SHADER_STATE_RECORD_pack()
3617 cl[16] = __gen_address_offset(&values->fragment_shader_uniforms_address); in V3D33_GL_SHADER_STATE_RECORD_pack()
3619 cl[17] = __gen_address_offset(&values->fragment_shader_uniforms_address) >> 8; in V3D33_GL_SHADER_STATE_RECORD_pack()
3621 cl[18] = __gen_address_offset(&values->fragment_shader_uniforms_address) >> 16; in V3D33_GL_SHADER_STATE_RECORD_pack()
3623 cl[19] = __gen_address_offset(&values->fragment_shader_uniforms_address) >> 24; in V3D33_GL_SHADER_STATE_RECORD_pack()
3625 __gen_emit_reloc(data, &values->vertex_shader_code_address); in V3D33_GL_SHADER_STATE_RECORD_pack()
3626 cl[20] = __gen_address_offset(&values->vertex_shader_code_address) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3627 __gen_uint(values->vertex_shader_2_way_threadable, 0, 0) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3628 __gen_uint(values->vertex_shader_4_way_threadable, 1, 1) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3629 __gen_uint(values->vertex_shader_propagate_nans, 2, 2); in V3D33_GL_SHADER_STATE_RECORD_pack()
3631 cl[21] = __gen_address_offset(&values->vertex_shader_code_address) >> 8; in V3D33_GL_SHADER_STATE_RECORD_pack()
3633 cl[22] = __gen_address_offset(&values->vertex_shader_code_address) >> 16; in V3D33_GL_SHADER_STATE_RECORD_pack()
3635 cl[23] = __gen_address_offset(&values->vertex_shader_code_address) >> 24; in V3D33_GL_SHADER_STATE_RECORD_pack()
3637 __gen_emit_reloc(data, &values->vertex_shader_uniforms_address); in V3D33_GL_SHADER_STATE_RECORD_pack()
3638 cl[24] = __gen_address_offset(&values->vertex_shader_uniforms_address); in V3D33_GL_SHADER_STATE_RECORD_pack()
3640 cl[25] = __gen_address_offset(&values->vertex_shader_uniforms_address) >> 8; in V3D33_GL_SHADER_STATE_RECORD_pack()
3642 cl[26] = __gen_address_offset(&values->vertex_shader_uniforms_address) >> 16; in V3D33_GL_SHADER_STATE_RECORD_pack()
3644 cl[27] = __gen_address_offset(&values->vertex_shader_uniforms_address) >> 24; in V3D33_GL_SHADER_STATE_RECORD_pack()
3646 __gen_emit_reloc(data, &values->coordinate_shader_code_address); in V3D33_GL_SHADER_STATE_RECORD_pack()
3647 cl[28] = __gen_address_offset(&values->coordinate_shader_code_address) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3648 __gen_uint(values->coordinate_shader_2_way_threadable, 0, 0) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3649 __gen_uint(values->coordinate_shader_4_way_threadable, 1, 1) | in V3D33_GL_SHADER_STATE_RECORD_pack()
3650 __gen_uint(values->coordinate_shader_propagate_nans, 2, 2); in V3D33_GL_SHADER_STATE_RECORD_pack()
3652 cl[29] = __gen_address_offset(&values->coordinate_shader_code_address) >> 8; in V3D33_GL_SHADER_STATE_RECORD_pack()
3654 cl[30] = __gen_address_offset(&values->coordinate_shader_code_address) >> 16; in V3D33_GL_SHADER_STATE_RECORD_pack()
3656 cl[31] = __gen_address_offset(&values->coordinate_shader_code_address) >> 24; in V3D33_GL_SHADER_STATE_RECORD_pack()
3658 __gen_emit_reloc(data, &values->coordinate_shader_uniforms_address); in V3D33_GL_SHADER_STATE_RECORD_pack()
3659 cl[32] = __gen_address_offset(&values->coordinate_shader_uniforms_address); in V3D33_GL_SHADER_STATE_RECORD_pack()
3661 cl[33] = __gen_address_offset(&values->coordinate_shader_uniforms_address) >> 8; in V3D33_GL_SHADER_STATE_RECORD_pack()
3663 cl[34] = __gen_address_offset(&values->coordinate_shader_uniforms_address) >> 16; in V3D33_GL_SHADER_STATE_RECORD_pack()
3665 cl[35] = __gen_address_offset(&values->coordinate_shader_uniforms_address) >> 24; in V3D33_GL_SHADER_STATE_RECORD_pack()
3673 struct V3D33_GL_SHADER_STATE_RECORD * restrict values) in V3D33_GL_SHADER_STATE_RECORD_unpack() argument
3675 values->point_size_in_shaded_vertex_data = __gen_unpack_uint(cl, 0, 0); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3676 values->enable_clipping = __gen_unpack_uint(cl, 1, 1); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3677 values->vertex_id_read_by_coordinate_shader = __gen_unpack_uint(cl, 2, 2); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3678 values->instance_id_read_by_coordinate_shader = __gen_unpack_uint(cl, 3, 3); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3679 values->vertex_id_read_by_vertex_shader = __gen_unpack_uint(cl, 4, 4); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3680 values->instance_id_read_by_vertex_shader = __gen_unpack_uint(cl, 5, 5); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3681 values->fragment_shader_does_z_writes = __gen_unpack_uint(cl, 6, 6); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3682 values->turn_off_early_z_test = __gen_unpack_uint(cl, 7, 7); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3683 values->coordinate_shader_has_separate_input_and_output_vpm_blocks = __gen_unpack_uint(cl, 8, 8); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3684 values->vertex_shader_has_separate_input_and_output_vpm_blocks = __gen_unpack_uint(cl, 9, 9); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3685 …values->fragment_shader_uses_real_pixel_centre_w_in_addition_to_centroid_w2 = __gen_unpack_uint(cl… in V3D33_GL_SHADER_STATE_RECORD_unpack()
3686 values->number_of_varyings_in_fragment_shader = __gen_unpack_uint(cl, 16, 23); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3687 values->coordinate_shader_output_vpm_segment_size = __gen_unpack_uint(cl, 32, 39); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3688 values->coordinate_shader_input_vpm_segment_size = __gen_unpack_uint(cl, 40, 47); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3689 values->vertex_shader_output_vpm_segment_size = __gen_unpack_uint(cl, 48, 55); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3690 values->vertex_shader_input_vpm_segment_size = __gen_unpack_uint(cl, 56, 63); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3691 values->address_of_default_attribute_values = __gen_unpack_address(cl, 64, 95); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3692 values->fragment_shader_code_address = __gen_unpack_address(cl, 99, 127); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3693 values->fragment_shader_2_way_threadable = __gen_unpack_uint(cl, 96, 96); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3694 values->fragment_shader_4_way_threadable = __gen_unpack_uint(cl, 97, 97); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3695 values->fragment_shader_propagate_nans = __gen_unpack_uint(cl, 98, 98); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3696 values->fragment_shader_uniforms_address = __gen_unpack_address(cl, 128, 159); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3697 values->vertex_shader_code_address = __gen_unpack_address(cl, 160, 191); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3698 values->vertex_shader_2_way_threadable = __gen_unpack_uint(cl, 160, 160); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3699 values->vertex_shader_4_way_threadable = __gen_unpack_uint(cl, 161, 161); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3700 values->vertex_shader_propagate_nans = __gen_unpack_uint(cl, 162, 162); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3701 values->vertex_shader_uniforms_address = __gen_unpack_address(cl, 192, 223); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3702 values->coordinate_shader_code_address = __gen_unpack_address(cl, 224, 255); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3703 values->coordinate_shader_2_way_threadable = __gen_unpack_uint(cl, 224, 224); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3704 values->coordinate_shader_4_way_threadable = __gen_unpack_uint(cl, 225, 225); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3705 values->coordinate_shader_propagate_nans = __gen_unpack_uint(cl, 226, 226); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3706 values->coordinate_shader_uniforms_address = __gen_unpack_address(cl, 256, 287); in V3D33_GL_SHADER_STATE_RECORD_unpack()
3737 … const struct V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS * restrict values) in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack() argument
3739 assert(values->tbg_max_patches_per_tcs_batch >= 1); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3740 assert(values->tbg_min_tcs_output_segments_required_in_play >= 1); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3741 assert(values->tbg_min_per_patch_data_segments_required_in_play >= 1); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3742 assert(values->tpg_max_patches_per_tes_batch >= 1); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3743 assert(values->tpg_max_tcs_output_segments_per_tes_batch >= 1); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3744 assert(values->tpg_min_tes_output_segments_required_in_play >= 1); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3745 assert(values->gbg_min_gs_output_segments_required_in_play >= 1); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3746 cl[ 0] = __gen_uint(values->tcs_batch_flush_mode, 0, 1) | in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3747 __gen_uint(values->per_patch_data_column_depth, 2, 5); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3749 cl[ 1] = __gen_uint(values->tcs_output_segment_size_in_sectors, 0, 5) | in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3750 __gen_uint(values->tcs_output_segment_pack_mode, 6, 7); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3752 cl[ 2] = __gen_uint(values->tes_output_segment_size_in_sectors, 0, 5) | in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3753 __gen_uint(values->tes_output_segment_pack_mode, 6, 7); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3755 cl[ 3] = __gen_uint(values->gs_output_segment_size_in_sectors, 0, 5) | in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3756 __gen_uint(values->gs_output_segment_pack_mode, 6, 7); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3758 cl[ 4] = __gen_uint(values->tbg_max_patches_per_tcs_batch - 1, 0, 3) | in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3759 __gen_uint(values->tbg_max_extra_vertex_segs_for_patches_after_first, 4, 5) | in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3760 __gen_uint(values->tbg_min_tcs_output_segments_required_in_play - 1, 6, 7); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3762 cl[ 5] = __gen_uint(values->tbg_min_per_patch_data_segments_required_in_play - 1, 0, 2) | in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3763 __gen_uint(values->tpg_max_patches_per_tes_batch - 1, 5, 8); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3765 cl[ 6] = __gen_uint(values->tpg_max_patches_per_tes_batch - 1, 5, 8) >> 8 | in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3766 __gen_uint(values->tpg_max_vertex_segments_per_tes_batch, 1, 2) | in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3767 __gen_uint(values->tpg_max_tcs_output_segments_per_tes_batch - 1, 3, 5) | in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3768 __gen_uint(values->tpg_min_tes_output_segments_required_in_play - 1, 6, 8); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3770 cl[ 7] = __gen_uint(values->tpg_min_tes_output_segments_required_in_play - 1, 6, 8) >> 8 | in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3771 __gen_uint(values->gbg_max_tes_output_vertex_segments_per_gs_batch, 1, 2) | in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3772 __gen_uint(values->gbg_min_gs_output_segments_required_in_play - 1, 3, 5); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_pack()
3780 … struct V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS * restrict values) in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack() argument
3782 values->tcs_batch_flush_mode = __gen_unpack_uint(cl, 0, 1); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3783 values->per_patch_data_column_depth = __gen_unpack_uint(cl, 2, 5); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3784 values->tcs_output_segment_size_in_sectors = __gen_unpack_uint(cl, 8, 13); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3785 values->tcs_output_segment_pack_mode = __gen_unpack_uint(cl, 14, 15); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3786 values->tes_output_segment_size_in_sectors = __gen_unpack_uint(cl, 16, 21); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3787 values->tes_output_segment_pack_mode = __gen_unpack_uint(cl, 22, 23); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3788 values->gs_output_segment_size_in_sectors = __gen_unpack_uint(cl, 24, 29); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3789 values->gs_output_segment_pack_mode = __gen_unpack_uint(cl, 30, 31); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3790 values->tbg_max_patches_per_tcs_batch = __gen_unpack_uint(cl, 32, 35) + 1; in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3791 values->tbg_max_extra_vertex_segs_for_patches_after_first = __gen_unpack_uint(cl, 36, 37); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3792 values->tbg_min_tcs_output_segments_required_in_play = __gen_unpack_uint(cl, 38, 39) + 1; in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3793 values->tbg_min_per_patch_data_segments_required_in_play = __gen_unpack_uint(cl, 40, 42) + 1; in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3794 values->tpg_max_patches_per_tes_batch = __gen_unpack_uint(cl, 45, 48) + 1; in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3795 values->tpg_max_vertex_segments_per_tes_batch = __gen_unpack_uint(cl, 49, 50); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3796 values->tpg_max_tcs_output_segments_per_tes_batch = __gen_unpack_uint(cl, 51, 53) + 1; in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3797 values->tpg_min_tes_output_segments_required_in_play = __gen_unpack_uint(cl, 54, 56) + 1; in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3798 values->gbg_max_tes_output_vertex_segments_per_gs_batch = __gen_unpack_uint(cl, 57, 58); in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3799 values->gbg_min_gs_output_segments_required_in_play = __gen_unpack_uint(cl, 59, 61) + 1; in V3D33_TESSELLATION_GEOMETRY_SHADER_PARAMS_unpack()
3829 … const struct V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD * restrict values) in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_pack() argument
3831 __gen_emit_reloc(data, &values->address); in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_pack()
3832 cl[ 0] = __gen_address_offset(&values->address); in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_pack()
3834 cl[ 1] = __gen_address_offset(&values->address) >> 8; in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_pack()
3836 cl[ 2] = __gen_address_offset(&values->address) >> 16; in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_pack()
3838 cl[ 3] = __gen_address_offset(&values->address) >> 24; in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_pack()
3840 cl[ 4] = __gen_uint(values->vec_size, 0, 1) | in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_pack()
3841 __gen_uint(values->type, 2, 4) | in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_pack()
3842 __gen_uint(values->signed_int_type, 5, 5) | in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_pack()
3843 __gen_uint(values->normalized_int_type, 6, 6) | in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_pack()
3844 __gen_uint(values->read_as_int_uint, 7, 7); in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_pack()
3846 cl[ 5] = __gen_uint(values->number_of_values_read_by_coordinate_shader, 0, 3) | in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_pack()
3847 __gen_uint(values->number_of_values_read_by_vertex_shader, 4, 7); in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_pack()
3849 cl[ 6] = __gen_uint(values->instance_divisor, 0, 15); in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_pack()
3851 cl[ 7] = __gen_uint(values->instance_divisor, 0, 15) >> 8; in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_pack()
3854 memcpy(&cl[8], &values->stride, sizeof(values->stride)); in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_pack()
3861 … struct V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD * restrict values) in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_unpack() argument
3863 values->address = __gen_unpack_address(cl, 0, 31); in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_unpack()
3864 values->vec_size = __gen_unpack_uint(cl, 32, 33); in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_unpack()
3865 values->type = __gen_unpack_uint(cl, 34, 36); in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_unpack()
3866 values->signed_int_type = __gen_unpack_uint(cl, 37, 37); in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_unpack()
3867 values->normalized_int_type = __gen_unpack_uint(cl, 38, 38); in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_unpack()
3868 values->read_as_int_uint = __gen_unpack_uint(cl, 39, 39); in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_unpack()
3869 values->number_of_values_read_by_coordinate_shader = __gen_unpack_uint(cl, 40, 43); in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_unpack()
3870 values->number_of_values_read_by_vertex_shader = __gen_unpack_uint(cl, 44, 47); in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_unpack()
3871 values->instance_divisor = __gen_unpack_uint(cl, 48, 63); in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_unpack()
3872 values->stride = __gen_unpack_uint(cl, 64, 95); in V3D33_GL_SHADER_STATE_ATTRIBUTE_RECORD_unpack()
3897 … const struct V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP * restrict values) in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_pack() argument
3899 cl[ 0] = __gen_uint(values->addr, 0, 12); in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_pack()
3901 cl[ 1] = __gen_sint(values->stride, 7, 13) | in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_pack()
3902 __gen_uint(values->size, 5, 6) | in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_pack()
3903 __gen_uint(values->addr, 0, 12) >> 8; in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_pack()
3905 cl[ 2] = __gen_uint(values->laned, 7, 7) | in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_pack()
3906 __gen_uint(values->segs, 6, 6) | in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_pack()
3907 __gen_sint(values->stride, 7, 13) >> 8; in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_pack()
3909 cl[ 3] = __gen_uint(values->id, 6, 7) | in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_pack()
3910 __gen_uint(values->id0, 3, 5) | in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_pack()
3911 __gen_uint(values->horiz, 0, 0); in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_pack()
3919 … struct V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP * restrict values) in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_unpack() argument
3921 values->id = __gen_unpack_uint(cl, 30, 31); in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_unpack()
3922 values->id0 = __gen_unpack_uint(cl, 27, 29); in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_unpack()
3923 values->horiz = __gen_unpack_uint(cl, 24, 24); in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_unpack()
3924 values->laned = __gen_unpack_uint(cl, 23, 23); in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_unpack()
3925 values->segs = __gen_unpack_uint(cl, 22, 22); in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_unpack()
3926 values->stride = __gen_unpack_sint(cl, 15, 21); in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_unpack()
3927 values->size = __gen_unpack_uint(cl, 13, 14); in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_unpack()
3928 values->addr = __gen_unpack_uint(cl, 0, 12); in V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP_unpack()
3952 … const struct V3D33_VPM_GENERIC_BLOCK_READ_SETUP * restrict values) in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_pack() argument
3954 cl[ 0] = __gen_uint(values->addr, 0, 12); in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_pack()
3956 cl[ 1] = __gen_sint(values->stride, 7, 13) | in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_pack()
3957 __gen_uint(values->size, 5, 6) | in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_pack()
3958 __gen_uint(values->addr, 0, 12) >> 8; in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_pack()
3960 cl[ 2] = __gen_uint(values->num, 6, 10) | in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_pack()
3961 __gen_sint(values->stride, 7, 13) >> 8; in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_pack()
3963 cl[ 3] = __gen_uint(values->id, 6, 7) | in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_pack()
3964 __gen_uint(values->horiz, 5, 5) | in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_pack()
3965 __gen_uint(values->laned, 4, 4) | in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_pack()
3966 __gen_uint(values->segs, 3, 3) | in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_pack()
3967 __gen_uint(values->num, 6, 10) >> 8; in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_pack()
3975 … struct V3D33_VPM_GENERIC_BLOCK_READ_SETUP * restrict values) in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_unpack() argument
3977 values->id = __gen_unpack_uint(cl, 30, 31); in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_unpack()
3978 values->horiz = __gen_unpack_uint(cl, 29, 29); in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_unpack()
3979 values->laned = __gen_unpack_uint(cl, 28, 28); in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_unpack()
3980 values->segs = __gen_unpack_uint(cl, 27, 27); in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_unpack()
3981 values->num = __gen_unpack_uint(cl, 22, 26); in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_unpack()
3982 values->stride = __gen_unpack_sint(cl, 15, 21); in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_unpack()
3983 values->size = __gen_unpack_uint(cl, 13, 14); in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_unpack()
3984 values->addr = __gen_unpack_uint(cl, 0, 12); in V3D33_VPM_GENERIC_BLOCK_READ_SETUP_unpack()
4019 … const struct V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1 * restrict values) in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_pack() argument
4021 cl[ 0] = __gen_uint(values->coefficient_lookup_mode, 7, 7) | in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_pack()
4022 __gen_uint(values->disable_autolod_use_bias_only, 6, 6) | in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_pack()
4023 __gen_uint(values->bias_supplied, 5, 5) | in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_pack()
4024 __gen_uint(values->gather_sample_mode, 4, 4) | in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_pack()
4025 __gen_uint(values->fetch_sample_mode, 3, 3) | in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_pack()
4026 __gen_uint(values->lookup_type, 0, 2); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_pack()
4028 cl[ 1] = __gen_uint(values->t_wrap_mode, 5, 7) | in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_pack()
4029 __gen_uint(values->s_wrap_mode, 2, 4) | in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_pack()
4030 __gen_uint(values->new_configuration_mode, 1, 1) | in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_pack()
4031 __gen_uint(values->shadow, 0, 0); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_pack()
4033 cl[ 2] = __gen_sint(values->texel_offset_for_t_coordinate, 7, 10) | in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_pack()
4034 __gen_sint(values->texel_offset_for_s_coordinate, 3, 6) | in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_pack()
4035 __gen_uint(values->r_wrap_mode, 0, 2); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_pack()
4037 cl[ 3] = __gen_uint(values->per_pixel_mask_enable, 7, 7) | in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_pack()
4038 __gen_sint(values->texel_offset_for_r_coordinate, 3, 6) | in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_pack()
4039 __gen_sint(values->texel_offset_for_t_coordinate, 7, 10) >> 8; in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_pack()
4047 … struct V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1 * restrict values) in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_unpack() argument
4049 values->per_pixel_mask_enable = __gen_unpack_uint(cl, 31, 31); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_unpack()
4050 values->texel_offset_for_r_coordinate = __gen_unpack_sint(cl, 27, 30); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_unpack()
4051 values->texel_offset_for_t_coordinate = __gen_unpack_sint(cl, 23, 26); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_unpack()
4052 values->texel_offset_for_s_coordinate = __gen_unpack_sint(cl, 19, 22); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_unpack()
4053 values->r_wrap_mode = __gen_unpack_uint(cl, 16, 18); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_unpack()
4054 values->t_wrap_mode = __gen_unpack_uint(cl, 13, 15); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_unpack()
4055 values->s_wrap_mode = __gen_unpack_uint(cl, 10, 12); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_unpack()
4056 values->new_configuration_mode = __gen_unpack_uint(cl, 9, 9); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_unpack()
4057 values->shadow = __gen_unpack_uint(cl, 8, 8); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_unpack()
4058 values->coefficient_lookup_mode = __gen_unpack_uint(cl, 7, 7); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_unpack()
4059 values->disable_autolod_use_bias_only = __gen_unpack_uint(cl, 6, 6); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_unpack()
4060 values->bias_supplied = __gen_unpack_uint(cl, 5, 5); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_unpack()
4061 values->gather_sample_mode = __gen_unpack_uint(cl, 4, 4); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_unpack()
4062 values->fetch_sample_mode = __gen_unpack_uint(cl, 3, 3); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_unpack()
4063 values->lookup_type = __gen_unpack_uint(cl, 0, 2); in V3D33_TEXTURE_UNIFORM_PARAMETER_0_CFG_MODE1_unpack()
4078 … const struct V3D33_TEXTURE_UNIFORM_PARAMETER_1_CFG_MODE1 * restrict values) in V3D33_TEXTURE_UNIFORM_PARAMETER_1_CFG_MODE1_pack() argument
4080 __gen_emit_reloc(data, &values->texture_state_record_base_address); in V3D33_TEXTURE_UNIFORM_PARAMETER_1_CFG_MODE1_pack()
4081 cl[ 0] = __gen_address_offset(&values->texture_state_record_base_address) | in V3D33_TEXTURE_UNIFORM_PARAMETER_1_CFG_MODE1_pack()
4082 __gen_uint(values->return_words_of_texture_data, 0, 3); in V3D33_TEXTURE_UNIFORM_PARAMETER_1_CFG_MODE1_pack()
4084 cl[ 1] = __gen_address_offset(&values->texture_state_record_base_address) >> 8; in V3D33_TEXTURE_UNIFORM_PARAMETER_1_CFG_MODE1_pack()
4086 cl[ 2] = __gen_address_offset(&values->texture_state_record_base_address) >> 16; in V3D33_TEXTURE_UNIFORM_PARAMETER_1_CFG_MODE1_pack()
4088 cl[ 3] = __gen_address_offset(&values->texture_state_record_base_address) >> 24; in V3D33_TEXTURE_UNIFORM_PARAMETER_1_CFG_MODE1_pack()
4096 … struct V3D33_TEXTURE_UNIFORM_PARAMETER_1_CFG_MODE1 * restrict values) in V3D33_TEXTURE_UNIFORM_PARAMETER_1_CFG_MODE1_unpack() argument
4098 values->texture_state_record_base_address = __gen_unpack_address(cl, 4, 31); in V3D33_TEXTURE_UNIFORM_PARAMETER_1_CFG_MODE1_unpack()
4099 values->return_words_of_texture_data = __gen_unpack_uint(cl, 0, 3); in V3D33_TEXTURE_UNIFORM_PARAMETER_1_CFG_MODE1_unpack()
4149 const struct V3D33_TEXTURE_SHADER_STATE * restrict values) in V3D33_TEXTURE_SHADER_STATE_pack() argument
4151 __gen_emit_reloc(data, &values->texture_base_pointer); in V3D33_TEXTURE_SHADER_STATE_pack()
4152 cl[ 0] = __gen_address_offset(&values->texture_base_pointer) | in V3D33_TEXTURE_SHADER_STATE_pack()
4153 __gen_uint(values->filter, 0, 3); in V3D33_TEXTURE_SHADER_STATE_pack()
4155 cl[ 1] = __gen_address_offset(&values->texture_base_pointer) >> 8; in V3D33_TEXTURE_SHADER_STATE_pack()
4157 cl[ 2] = __gen_address_offset(&values->texture_base_pointer) >> 16; in V3D33_TEXTURE_SHADER_STATE_pack()
4159 cl[ 3] = __gen_address_offset(&values->texture_base_pointer) >> 24; in V3D33_TEXTURE_SHADER_STATE_pack()
4161 cl[ 4] = __gen_uint(values->array_stride_64_byte_aligned, 0, 25); in V3D33_TEXTURE_SHADER_STATE_pack()
4163 cl[ 5] = __gen_uint(values->array_stride_64_byte_aligned, 0, 25) >> 8; in V3D33_TEXTURE_SHADER_STATE_pack()
4165 cl[ 6] = __gen_uint(values->array_stride_64_byte_aligned, 0, 25) >> 16; in V3D33_TEXTURE_SHADER_STATE_pack()
4167 cl[ 7] = __gen_uint(values->image_width, 2, 15) | in V3D33_TEXTURE_SHADER_STATE_pack()
4168 __gen_uint(values->array_stride_64_byte_aligned, 0, 25) >> 24; in V3D33_TEXTURE_SHADER_STATE_pack()
4170 cl[ 8] = __gen_uint(values->image_width, 2, 15) >> 8; in V3D33_TEXTURE_SHADER_STATE_pack()
4172 cl[ 9] = __gen_uint(values->image_height, 0, 13); in V3D33_TEXTURE_SHADER_STATE_pack()
4174 cl[10] = __gen_uint(values->image_depth, 6, 19) | in V3D33_TEXTURE_SHADER_STATE_pack()
4175 __gen_uint(values->image_height, 0, 13) >> 8; in V3D33_TEXTURE_SHADER_STATE_pack()
4177 cl[11] = __gen_uint(values->image_depth, 6, 19) >> 8; in V3D33_TEXTURE_SHADER_STATE_pack()
4179 cl[12] = __gen_uint(values->texture_type, 4, 10) | in V3D33_TEXTURE_SHADER_STATE_pack()
4180 __gen_uint(values->image_depth, 6, 19) >> 16; in V3D33_TEXTURE_SHADER_STATE_pack()
4182 cl[13] = __gen_uint(values->depth_compare_function, 5, 7) | in V3D33_TEXTURE_SHADER_STATE_pack()
4183 __gen_uint(values->srgb, 3, 3) | in V3D33_TEXTURE_SHADER_STATE_pack()
4184 __gen_uint(values->texture_type, 4, 10) >> 8; in V3D33_TEXTURE_SHADER_STATE_pack()
4186 cl[14] = __gen_uint(values->swizzle_b, 6, 8) | in V3D33_TEXTURE_SHADER_STATE_pack()
4187 __gen_uint(values->swizzle_g, 3, 5) | in V3D33_TEXTURE_SHADER_STATE_pack()
4188 __gen_uint(values->swizzle_r, 0, 2); in V3D33_TEXTURE_SHADER_STATE_pack()
4190 cl[15] = __gen_uint(values->flip_s_and_t_on_incoming_request, 7, 7) | in V3D33_TEXTURE_SHADER_STATE_pack()
4191 __gen_uint(values->flip_etc_y, 6, 6) | in V3D33_TEXTURE_SHADER_STATE_pack()
4192 __gen_uint(values->flip_texture_y_axis, 5, 5) | in V3D33_TEXTURE_SHADER_STATE_pack()
4193 __gen_uint(values->flip_texture_x_axis, 4, 4) | in V3D33_TEXTURE_SHADER_STATE_pack()
4194 __gen_uint(values->swizzle_a, 1, 3) | in V3D33_TEXTURE_SHADER_STATE_pack()
4195 __gen_uint(values->swizzle_b, 6, 8) >> 8; in V3D33_TEXTURE_SHADER_STATE_pack()
4197 cl[16] = __gen_uint(values->border_color_red, 0, 15); in V3D33_TEXTURE_SHADER_STATE_pack()
4199 cl[17] = __gen_uint(values->border_color_red, 0, 15) >> 8; in V3D33_TEXTURE_SHADER_STATE_pack()
4201 cl[18] = __gen_uint(values->border_color_green, 0, 15); in V3D33_TEXTURE_SHADER_STATE_pack()
4203 cl[19] = __gen_uint(values->border_color_green, 0, 15) >> 8; in V3D33_TEXTURE_SHADER_STATE_pack()
4205 cl[20] = __gen_uint(values->border_color_blue, 0, 15); in V3D33_TEXTURE_SHADER_STATE_pack()
4207 cl[21] = __gen_uint(values->border_color_blue, 0, 15) >> 8; in V3D33_TEXTURE_SHADER_STATE_pack()
4209 cl[22] = __gen_uint(values->border_color_alpha, 0, 15); in V3D33_TEXTURE_SHADER_STATE_pack()
4211 cl[23] = __gen_uint(values->border_color_alpha, 0, 15) >> 8; in V3D33_TEXTURE_SHADER_STATE_pack()
4213 cl[24] = __gen_sfixed(values->min_level_of_detail, 0, 15, 8); in V3D33_TEXTURE_SHADER_STATE_pack()
4215 cl[25] = __gen_sfixed(values->min_level_of_detail, 0, 15, 8) >> 8; in V3D33_TEXTURE_SHADER_STATE_pack()
4217 cl[26] = __gen_sfixed(values->max_level_of_detail, 0, 15, 8); in V3D33_TEXTURE_SHADER_STATE_pack()
4219 cl[27] = __gen_sfixed(values->max_level_of_detail, 0, 15, 8) >> 8; in V3D33_TEXTURE_SHADER_STATE_pack()
4221 cl[28] = __gen_sfixed(values->fixed_bias, 0, 15, 8); in V3D33_TEXTURE_SHADER_STATE_pack()
4223 cl[29] = __gen_sfixed(values->fixed_bias, 0, 15, 8) >> 8; in V3D33_TEXTURE_SHADER_STATE_pack()
4225 cl[30] = __gen_uint(values->output_32_bit, 6, 6) | in V3D33_TEXTURE_SHADER_STATE_pack()
4226 __gen_uint(values->sample_number, 4, 5) | in V3D33_TEXTURE_SHADER_STATE_pack()
4227 __gen_uint(values->base_level, 0, 3); in V3D33_TEXTURE_SHADER_STATE_pack()
4229 cl[31] = __gen_uint(values->uif_xor_disable, 7, 7) | in V3D33_TEXTURE_SHADER_STATE_pack()
4230 __gen_uint(values->level_0_is_strictly_uif, 6, 6) | in V3D33_TEXTURE_SHADER_STATE_pack()
4231 __gen_uint(values->level_0_xor_enable, 4, 4) | in V3D33_TEXTURE_SHADER_STATE_pack()
4232 __gen_uint(values->level_0_ub_pad, 0, 3); in V3D33_TEXTURE_SHADER_STATE_pack()
4240 struct V3D33_TEXTURE_SHADER_STATE * restrict values) in V3D33_TEXTURE_SHADER_STATE_unpack() argument
4242 values->uif_xor_disable = __gen_unpack_uint(cl, 255, 255); in V3D33_TEXTURE_SHADER_STATE_unpack()
4243 values->level_0_is_strictly_uif = __gen_unpack_uint(cl, 254, 254); in V3D33_TEXTURE_SHADER_STATE_unpack()
4244 values->level_0_xor_enable = __gen_unpack_uint(cl, 252, 252); in V3D33_TEXTURE_SHADER_STATE_unpack()
4245 values->level_0_ub_pad = __gen_unpack_uint(cl, 248, 251); in V3D33_TEXTURE_SHADER_STATE_unpack()
4246 values->output_32_bit = __gen_unpack_uint(cl, 246, 246); in V3D33_TEXTURE_SHADER_STATE_unpack()
4247 values->sample_number = __gen_unpack_uint(cl, 244, 245); in V3D33_TEXTURE_SHADER_STATE_unpack()
4248 values->base_level = __gen_unpack_uint(cl, 240, 243); in V3D33_TEXTURE_SHADER_STATE_unpack()
4249 values->fixed_bias = __gen_unpack_sfixed(cl, 224, 239, 8); in V3D33_TEXTURE_SHADER_STATE_unpack()
4250 values->max_level_of_detail = __gen_unpack_sfixed(cl, 208, 223, 8); in V3D33_TEXTURE_SHADER_STATE_unpack()
4251 values->min_level_of_detail = __gen_unpack_sfixed(cl, 192, 207, 8); in V3D33_TEXTURE_SHADER_STATE_unpack()
4252 values->border_color_alpha = __gen_unpack_uint(cl, 176, 191); in V3D33_TEXTURE_SHADER_STATE_unpack()
4253 values->border_color_blue = __gen_unpack_uint(cl, 160, 175); in V3D33_TEXTURE_SHADER_STATE_unpack()
4254 values->border_color_green = __gen_unpack_uint(cl, 144, 159); in V3D33_TEXTURE_SHADER_STATE_unpack()
4255 values->border_color_red = __gen_unpack_uint(cl, 128, 143); in V3D33_TEXTURE_SHADER_STATE_unpack()
4256 values->flip_s_and_t_on_incoming_request = __gen_unpack_uint(cl, 127, 127); in V3D33_TEXTURE_SHADER_STATE_unpack()
4257 values->flip_etc_y = __gen_unpack_uint(cl, 126, 126); in V3D33_TEXTURE_SHADER_STATE_unpack()
4258 values->flip_texture_y_axis = __gen_unpack_uint(cl, 125, 125); in V3D33_TEXTURE_SHADER_STATE_unpack()
4259 values->flip_texture_x_axis = __gen_unpack_uint(cl, 124, 124); in V3D33_TEXTURE_SHADER_STATE_unpack()
4260 values->swizzle_a = __gen_unpack_uint(cl, 121, 123); in V3D33_TEXTURE_SHADER_STATE_unpack()
4261 values->swizzle_b = __gen_unpack_uint(cl, 118, 120); in V3D33_TEXTURE_SHADER_STATE_unpack()
4262 values->swizzle_g = __gen_unpack_uint(cl, 115, 117); in V3D33_TEXTURE_SHADER_STATE_unpack()
4263 values->swizzle_r = __gen_unpack_uint(cl, 112, 114); in V3D33_TEXTURE_SHADER_STATE_unpack()
4264 values->depth_compare_function = __gen_unpack_uint(cl, 109, 111); in V3D33_TEXTURE_SHADER_STATE_unpack()
4265 values->srgb = __gen_unpack_uint(cl, 107, 107); in V3D33_TEXTURE_SHADER_STATE_unpack()
4266 values->texture_type = __gen_unpack_uint(cl, 100, 106); in V3D33_TEXTURE_SHADER_STATE_unpack()
4267 values->image_depth = __gen_unpack_uint(cl, 86, 99); in V3D33_TEXTURE_SHADER_STATE_unpack()
4268 values->image_height = __gen_unpack_uint(cl, 72, 85); in V3D33_TEXTURE_SHADER_STATE_unpack()
4269 values->image_width = __gen_unpack_uint(cl, 58, 71); in V3D33_TEXTURE_SHADER_STATE_unpack()
4270 values->array_stride_64_byte_aligned = __gen_unpack_uint(cl, 32, 57); in V3D33_TEXTURE_SHADER_STATE_unpack()
4271 values->texture_base_pointer = __gen_unpack_address(cl, 2, 31); in V3D33_TEXTURE_SHADER_STATE_unpack()
4272 values->filter = __gen_unpack_uint(cl, 0, 3); in V3D33_TEXTURE_SHADER_STATE_unpack()