summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/v3d/v3d_bufmgr.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-06-25 16:08:06 -0700
committerEric Anholt <[email protected]>2018-07-27 12:56:36 -0700
commit1c8e4632a777c30b2554b1031181954efc071e0b (patch)
treeb36867495f32e6e349addebc65eadd2feeff0208 /src/gallium/drivers/v3d/v3d_bufmgr.c
parentab05dd183cc862f657847c371eded9896559af00 (diff)
v3d: Stop using spaces in the names of our buffers.
For CLIF dumping, we need names to not have spaces. Rather than rewriting them after the fact, just change the two cases where I had put a space in.
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_bufmgr.c')
-rw-r--r--src/gallium/drivers/v3d/v3d_bufmgr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3d_bufmgr.c b/src/gallium/drivers/v3d/v3d_bufmgr.c
index ba9aa65ba89..d01b60e3223 100644
--- a/src/gallium/drivers/v3d/v3d_bufmgr.c
+++ b/src/gallium/drivers/v3d/v3d_bufmgr.c
@@ -131,6 +131,10 @@ v3d_bo_alloc(struct v3d_screen *screen, uint32_t size, const char *name)
struct v3d_bo *bo;
int ret;
+ /* The CLIF dumping requires that there is no whitespace in the name.
+ */
+ assert(!strchr(name, ' '));
+
size = align(size, 4096);
bo = v3d_bo_from_cache(screen, size, name);