diff options
author | Dave Airlie <[email protected]> | 2018-12-04 08:11:13 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-12-04 08:11:13 +1000 |
commit | e3f075439c81bf137a57c7a061fccb109601066d (patch) | |
tree | a5e8bddda1a9b74f4dba97fbc55f831c6382d793 /src/gallium/drivers | |
parent | 71271e167b45b747db1287c673b186731d5e413c (diff) |
virgl: fix const warning on debug flags.
Fixes: 8d4bb6e5c (virgl: Add command and flags to initiate debugging on the host (v2))
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_encode.c | 4 | ||||
-rw-r--r-- | src/gallium/drivers/virgl/virgl_encode.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/virgl/virgl_encode.c b/src/gallium/drivers/virgl/virgl_encode.c index 49d95de8353..403f54e2842 100644 --- a/src/gallium/drivers/virgl/virgl_encode.c +++ b/src/gallium/drivers/virgl/virgl_encode.c @@ -1056,7 +1056,7 @@ int virgl_encode_texture_barrier(struct virgl_context *ctx, } int virgl_encode_host_debug_flagstring(struct virgl_context *ctx, - char *flagstring) + const char *flagstring) { unsigned long slen = strlen(flagstring) + 1; uint32_t sslen; @@ -1074,7 +1074,7 @@ int virgl_encode_host_debug_flagstring(struct virgl_context *ctx, string_length = (uint32_t)MIN2(sslen * 4, slen); virgl_encoder_write_cmd_dword(ctx, VIRGL_CMD0(VIRGL_CCMD_SET_DEBUG_FLAGS, 0, sslen)); - virgl_encoder_write_block(ctx->cbuf, (uint8_t *)flagstring, string_length); + virgl_encoder_write_block(ctx->cbuf, (const uint8_t *)flagstring, string_length); return 0; } diff --git a/src/gallium/drivers/virgl/virgl_encode.h b/src/gallium/drivers/virgl/virgl_encode.h index 80b943a6b34..f3729e8e920 100644 --- a/src/gallium/drivers/virgl/virgl_encode.h +++ b/src/gallium/drivers/virgl/virgl_encode.h @@ -278,5 +278,5 @@ int virgl_encode_texture_barrier(struct virgl_context *ctx, unsigned flags); int virgl_encode_host_debug_flagstring(struct virgl_context *ctx, - char *envname); + const char *envname); #endif |