gallium/util: add a helper to compute vertex count from primitive count
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 1 Aug 2019 09:56:29 +0000 (11:56 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 8 Aug 2019 06:36:52 +0000 (08:36 +0200)
commitcf8986bce058e2724e01c68fcc64e34e59869a06
tree7eab50add0b2bbe3e59967c99f4cf88e92b8bdca
parent9eb8699e0f53577f203dc63b01fe18b6a2f61734
gallium/util: add a helper to compute vertex count from primitive count

v2:
  - Only compute vertex counts for base primitives.
  - Add a unit test (Eric)

Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/auxiliary/util/u_prim.h
src/gallium/tests/unit/meson.build
src/gallium/tests/unit/u_prim_verts_test.c [new file with mode: 0644]