From: Rob Clark Date: Tue, 6 Dec 2016 17:57:24 +0000 (-0500) Subject: freedreno/a5xx: fix emit_string_marker() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=85a3057f651a1c56348f1af18343d9cc0a5c93f3;p=mesa.git freedreno/a5xx: fix emit_string_marker() Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/freedreno_context.c b/src/gallium/drivers/freedreno/freedreno_context.c index 1128d918b52..348cc60e9ca 100644 --- a/src/gallium/drivers/freedreno/freedreno_context.c +++ b/src/gallium/drivers/freedreno/freedreno_context.c @@ -85,7 +85,10 @@ fd_emit_string_marker(struct pipe_context *pctx, const char *string, int len) /* max packet size is 0x3fff dwords: */ len = MIN2(len, 0x3fff * 4); - OUT_PKT3(ring, CP_NOP, align(len, 4) / 4); + if (ctx->screen->gpu_id >= 500) + OUT_PKT7(ring, CP_NOP, align(len, 4) / 4); + else + OUT_PKT3(ring, CP_NOP, align(len, 4) / 4); while (len >= 4) { OUT_RING(ring, *buf); buf++;