diff options
author | Kenneth Graunke <[email protected]> | 2018-06-13 02:15:40 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:06 -0800 |
commit | de782e5b39efbb6f395950021e7d5b3dc394c1fa (patch) | |
tree | 7dc368c6fe0626cc8278c9f6a1ea8ded848cdbd4 /src/gallium/drivers/iris/iris_state.c | |
parent | 3eebea88dcb557faf7b161b13b082ad3d17f33ff (diff) |
iris: delete some pointless STATIC_ASSERTS
these were useful when I was patching relocs
Diffstat (limited to 'src/gallium/drivers/iris/iris_state.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index d36a11d0aab..c7517f2c2cd 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -2544,12 +2544,10 @@ iris_upload_render_state(struct iris_context *ice, if (dirty & IRIS_DIRTY_VERTEX_BUFFERS) { struct iris_vertex_buffer_state *cso = ice->state.cso_vertex_buffers; - - STATIC_ASSERT(GENX(VERTEX_BUFFER_STATE_length) == 4); - STATIC_ASSERT((GENX(VERTEX_BUFFER_STATE_BufferStartingAddress_bits) % 32) == 0); + const unsigned vb_dwords = GENX(VERTEX_BUFFER_STATE_length); iris_batch_emit(batch, cso->vertex_buffers, - sizeof(uint32_t) * (1 + 4 * cso->num_buffers)); + sizeof(uint32_t) * (1 + vb_dwords * cso->num_buffers)); for (unsigned i = 0; i < cso->num_buffers; i++) { iris_use_pinned_bo(batch, cso->bos[i], false); |