mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 04:00:10 +01:00
llvmpipe: Remove redundant alignments.
The lp_rast_shader_inputs' alignment is irrelevant now that it contains pointers instead of actual data. Likewise, lp_rast_triangle's size alignment is meaningless.
This commit is contained in:
parent
bed78862d4
commit
d023fb3928
2 changed files with 1 additions and 3 deletions
|
|
@ -117,7 +117,7 @@ struct lp_rast_plane {
|
|||
*/
|
||||
struct lp_rast_triangle {
|
||||
/* inputs for the shader */
|
||||
PIPE_ALIGN_VAR(16) struct lp_rast_shader_inputs inputs;
|
||||
struct lp_rast_shader_inputs inputs;
|
||||
|
||||
int step[3][16];
|
||||
|
||||
|
|
|
|||
|
|
@ -342,8 +342,6 @@ alloc_triangle(struct lp_scene *scene,
|
|||
unsigned tri_bytes, bytes;
|
||||
char *inputs;
|
||||
|
||||
assert(sizeof(*tri) % 16 == 0);
|
||||
|
||||
tri_bytes = align(Offset(struct lp_rast_triangle, plane[nr_planes]), 16);
|
||||
bytes = tri_bytes + (3 * input_array_sz);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue