Lines Matching defs:key
535 dzn_meta_blit_create(struct dzn_device *device, const struct dzn_meta_blit_key *key)
557 .Filter = key->linear_filter ?
605 .SampleMask = key->resolve ? 1 : (1ULL << key->samples) - 1,
613 .Count = key->resolve ? 1 : key->samples,
620 .src_samples = key->samples,
621 .loc = key->loc,
622 .out_type = key->out_type,
623 .sampler_dim = key->sampler_dim,
624 .src_is_array = key->src_is_array,
625 .resolve = key->resolve,
657 assert(key->loc == FRAG_RESULT_DATA0 ||
658 key->loc == FRAG_RESULT_DEPTH ||
659 key->loc == FRAG_RESULT_STENCIL);
661 if (key->loc == FRAG_RESULT_DATA0) {
663 desc.RTVFormats[0] = key->out_format;
666 desc.DSVFormat = key->out_format;
667 if (key->loc == FRAG_RESULT_DEPTH) {
672 assert(key->loc == FRAG_RESULT_STENCIL);
695 const struct dzn_meta_blit_key *key)
699 STATIC_ASSERT(sizeof(*key) == sizeof(uint64_t));
704 _mesa_hash_table_u64_search(device->blits.contexts, key->u64);
706 out = dzn_meta_blit_create(device, key);
709 _mesa_hash_table_u64_insert(device->blits.contexts, key->u64, out);