Mesa (master): virgl: use debug_printf instead of fprintf

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 10 12:37:21 UTC 2019


Module: Mesa
Branch: master
Commit: 7c05c95d0559d6a15b14b2a9525e09fad70129fd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7c05c95d0559d6a15b14b2a9525e09fad70129fd

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Wed Apr 10 13:43:34 2019 +0200

virgl: use debug_printf instead of fprintf

While we're at it, prefix the string with "VIRGL: ", to match similar
code elsewhere in virgl.

Fixes: d7b31969767 ("virgl: Return an error if we use fp64 on top of GLES")
Signed-off-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Reviewed-by: Elie Tournier <elie.tournier at collabora.com>

---

 src/gallium/drivers/virgl/virgl_tgsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/virgl/virgl_tgsi.c b/src/gallium/drivers/virgl/virgl_tgsi.c
index 7a06a572794..9ec552ad6fb 100644
--- a/src/gallium/drivers/virgl/virgl_tgsi.c
+++ b/src/gallium/drivers/virgl/virgl_tgsi.c
@@ -85,7 +85,7 @@ virgl_tgsi_transform_instruction(struct tgsi_transform_context *ctx,
    if (vtctx->fake_fp64 &&
        (tgsi_opcode_infer_src_type(inst->Instruction.Opcode, 0) == TGSI_TYPE_DOUBLE ||
         tgsi_opcode_infer_dst_type(inst->Instruction.Opcode, 0) == TGSI_TYPE_DOUBLE)) {
-      fprintf(stderr, "ARB_gpu_shader_fp64 is exposed but not supported.");
+      debug_printf("VIRGL: ARB_gpu_shader_fp64 is exposed but not supported.");
       return;
    }
 




More information about the mesa-commit mailing list