summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
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
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')
-rw-r--r--src/gallium/drivers/v3d/v3d_bufmgr.c4
-rw-r--r--src/gallium/drivers/v3d/v3dx_draw.c2
-rw-r--r--src/gallium/drivers/v3d/v3dx_state.c2
3 files changed, 6 insertions, 2 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);
diff --git a/src/gallium/drivers/v3d/v3dx_draw.c b/src/gallium/drivers/v3d/v3dx_draw.c
index 13143191d21..9c533a46255 100644
--- a/src/gallium/drivers/v3d/v3dx_draw.c
+++ b/src/gallium/drivers/v3d/v3dx_draw.c
@@ -55,7 +55,7 @@ v3d_start_draw(struct v3d_context *v3d)
job->submit.bcl_start = job->bcl.bo->offset;
v3d_job_add_bo(job, job->bcl.bo);
- job->tile_alloc = v3d_bo_alloc(v3d->screen, 1024 * 1024, "tile alloc");
+ job->tile_alloc = v3d_bo_alloc(v3d->screen, 1024 * 1024, "tile_alloc");
uint32_t tsda_per_tile_size = v3d->screen->devinfo.ver >= 40 ? 256 : 64;
job->tile_state = v3d_bo_alloc(v3d->screen,
job->draw_tiles_y *
diff --git a/src/gallium/drivers/v3d/v3dx_state.c b/src/gallium/drivers/v3d/v3dx_state.c
index 4bb90f1a98b..34b845730f6 100644
--- a/src/gallium/drivers/v3d/v3dx_state.c
+++ b/src/gallium/drivers/v3d/v3dx_state.c
@@ -404,7 +404,7 @@ v3d_vertex_state_create(struct pipe_context *pctx, unsigned num_elements,
so->default_attribute_values = v3d_bo_alloc(v3d->screen,
VC5_MAX_ATTRIBUTES *
4 * sizeof(float),
- "default attributes");
+ "default_attributes");
uint32_t *attrs = v3d_bo_map(so->default_attribute_values);
for (int i = 0; i < VC5_MAX_ATTRIBUTES; i++) {
attrs[i * 4 + 0] = 0;