The patches are based on top of the other 3 reviewed but not yet pushed from "Small r600_draw_vbo optimizations". Here, amongst all, I replaced some "unsigned"s with the enums they represent. It helps understanding the code, and even allowed to remove a short comment with the sole purpose of just describing the acc. enum.
Piglit-tested with tests/gpu.py in gbm mode, no changes. P.S. I don't have commit access. Constantine Kharlamov (4): r600g: remove duplicate memset by using a pointer, and constify args r600g/radeonsi: use the correct types (taken from pipe_draw_info) r600g: extract a code into a r600_emit_rasterizer_prim_state() r600g: check rasterizer primitive states like in radeonsi src/gallium/drivers/r600/r600_hw_context.c | 2 + src/gallium/drivers/r600/r600_pipe.h | 16 +++--- src/gallium/drivers/r600/r600_state_common.c | 83 +++++++++++++++++----------- src/gallium/drivers/radeonsi/si_pipe.h | 2 +- src/gallium/drivers/radeonsi/si_state_draw.c | 5 +- 5 files changed, 65 insertions(+), 43 deletions(-) -- 2.12.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev