summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_context.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-12-06 12:57:24 -0500
committerRob Clark <[email protected]>2016-12-06 18:01:31 -0500
commit85a3057f651a1c56348f1af18343d9cc0a5c93f3 (patch)
tree4ad5fe1fcd2ea2cc7403312d8a359ab9474893e9 /src/gallium/drivers/freedreno/freedreno_context.c
parentc1e9cca6965cb0b7dcb6fa14b08f42e98b25b322 (diff)
freedreno/a5xx: fix emit_string_marker()
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_context.c')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_context.c5
1 files changed, 4 insertions, 1 deletions
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++;