Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mesa
Path: blob/21.2-virgl/src/intel/common/intel_batch_decoder_stub.c
4547 views
1
/*
2
* Copyright © 2021 Intel Corporation
3
*
4
* Permission is hereby granted, free of charge, to any person obtaining a
5
* copy of this software and associated documentation files (the "Software"),
6
* to deal in the Software without restriction, including without limitation
7
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
8
* and/or sell copies of the Software, and to permit persons to whom the
9
* Software is furnished to do so, subject to the following conditions:
10
*
11
* The above copyright notice and this permission notice (including the next
12
* paragraph) shall be included in all copies or substantial portions of the
13
* Software.
14
*
15
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21
* IN THE SOFTWARE.
22
*/
23
24
#include "common/intel_decoder.h"
25
#include "util/log.h"
26
27
void
28
intel_batch_decode_ctx_init(struct intel_batch_decode_ctx *ctx,
29
const struct intel_device_info *devinfo,
30
FILE *fp, enum intel_batch_decode_flags flags,
31
const char *xml_path,
32
struct intel_batch_decode_bo (*get_bo)(void *,
33
bool,
34
uint64_t),
35
unsigned (*get_state_size)(void *, uint64_t,
36
uint64_t),
37
void *user_data)
38
{
39
/* Clear ctx to play safe. */
40
memset(ctx, 0, sizeof(*ctx));
41
}
42
43
void
44
intel_batch_decode_ctx_finish(struct intel_batch_decode_ctx *ctx)
45
{
46
}
47
48
void
49
intel_print_batch(struct intel_batch_decode_ctx *ctx,
50
const uint32_t *batch, uint32_t batch_size,
51
uint64_t batch_addr, bool from_ring)
52
{
53
mesa_logw("Batch logging not supported on Android.");
54
}
55
56