Lines Matching defs:expect

672 d3d12_compare_varying_info(const d3d12_varying_info *expect, const d3d12_varying_info *have)
674 if (expect->mask != have->mask)
677 if (!expect->mask)
682 if (util_bitcount64(expect->mask) < 6) {
683 uint64_t mask = expect->mask;
686 if (memcmp(&expect->slots[slot], &have->slots[slot], sizeof(have->slots[slot])))
693 return !memcmp(expect, have, sizeof(struct d3d12_varying_info));
697 d3d12_compare_shader_keys(const d3d12_shader_key *expect, const d3d12_shader_key *have)
699 assert(expect->stage == have->stage);
700 assert(expect);
703 if (expect->hash != have->hash)
709 if (!d3d12_compare_varying_info(&expect->required_varying_inputs,
711 expect->next_varying_inputs != have->next_varying_inputs)
714 if (!d3d12_compare_varying_info(&expect->required_varying_outputs,
716 expect->prev_varying_outputs != have->prev_varying_outputs)
719 if (expect->stage == PIPE_SHADER_GEOMETRY) {
720 if (expect->gs.writes_psize) {
722 expect->gs.point_pos_stream_out != have->gs.point_pos_stream_out ||
723 expect->gs.sprite_coord_enable != have->gs.sprite_coord_enable ||
724 expect->gs.sprite_origin_upper_left != have->gs.sprite_origin_upper_left ||
725 expect->gs.point_size_per_vertex != have->gs.point_size_per_vertex)
730 if (expect->gs.primitive_id != have->gs.primitive_id ||
731 expect->gs.triangle_strip != have->gs.triangle_strip)
733 } else if (expect->stage == PIPE_SHADER_FRAGMENT) {
734 if (expect->fs.frag_result_color_lowering != have->fs.frag_result_color_lowering ||
735 expect->fs.manual_depth_range != have->fs.manual_depth_range ||
736 expect->fs.polygon_stipple != have->fs.polygon_stipple ||
737 expect->fs.cast_to_uint != have->fs.cast_to_uint ||
738 expect->fs.cast_to_int != have->fs.cast_to_int ||
739 expect->fs.remap_front_facing != have->fs.remap_front_facing ||
740 expect->fs.missing_dual_src_outputs != have->fs.missing_dual_src_outputs ||
741 expect->fs.multisample_disabled != have->fs.multisample_disabled)
743 } else if (expect->stage == PIPE_SHADER_COMPUTE) {
744 if (memcmp(expect->cs.workgroup_size, have->cs.workgroup_size,
747 } else if (expect->stage == PIPE_SHADER_TESS_CTRL) {
748 if (expect->hs.primitive_mode != have->hs.primitive_mode ||
749 expect->hs.ccw != have->hs.ccw ||
750 expect->hs.point_mode != have->hs.point_mode ||
751 expect->hs.spacing != have->hs.spacing ||
752 expect->hs.patch_vertices_in != have->hs.patch_vertices_in ||
753 memcmp(&expect->hs.required_patch_outputs, &have->hs.required_patch_outputs,
755 expect->hs.next_patch_inputs != have->hs.next_patch_inputs)
757 } else if (expect->stage == PIPE_SHADER_TESS_EVAL) {
758 if (expect->ds.tcs_vertices_out != have->ds.tcs_vertices_out ||
759 memcmp(&expect->ds.required_patch_inputs, &have->ds.required_patch_inputs,
761 expect->ds.prev_patch_outputs != have ->ds.prev_patch_outputs)
765 if (expect->input_clip_size != have->input_clip_size)
768 if (expect->tex_saturate_s != have->tex_saturate_s ||
769 expect->tex_saturate_r != have->tex_saturate_r ||
770 expect->tex_saturate_t != have->tex_saturate_t)
773 if (expect->samples_int_textures != have->samples_int_textures)
776 if (expect->n_texture_states != have->n_texture_states)
779 if (expect->n_images != have->n_images)
782 if (memcmp(expect->tex_wrap_states, have->tex_wrap_states,
783 expect->n_texture_states * sizeof(dxil_wrap_sampler_state)))
786 if (memcmp(expect->swizzle_state, have->swizzle_state,
787 expect->n_texture_states * sizeof(dxil_texture_swizzle_state)))
790 if (memcmp(expect->sampler_compare_funcs, have->sampler_compare_funcs,
791 expect->n_texture_states * sizeof(enum compare_func)))
794 if (memcmp(expect->image_format_conversion, have->image_format_conversion,
795 expect->n_images * sizeof(struct d3d12_image_format_conversion_info)))
798 if (expect->invert_depth != have->invert_depth ||
799 expect->halfz != have->halfz)
802 if (expect->stage == PIPE_SHADER_VERTEX) {
803 if (expect->vs.needs_format_emulation != have->vs.needs_format_emulation)
806 if (expect->vs.needs_format_emulation) {
807 if (memcmp(expect->vs.format_conversion, have->vs.format_conversion,
813 if (expect->fs.provoking_vertex != have->fs.provoking_vertex)