iris: Set XY Clipping correctly

Graphics / Mesa 3D Graphics Library / Mesa - Kenneth Graunke [] - 29 April 2019 17:53 UTC

I was setting it based off a pipe_rasterizer_state field that appears to be entirely dead outside of the draw module respecting it.

I should be setting it when the primitive type reaching the SF is neither points nor lines. This is, unfortunately, rather dirty, as we have to look at the rasterizer state, the geometry shader state, the tessellation evaluation shader state, and the primitive type...

dcfca0af7c5 iris: Set XY Clipping correctly.
src/gallium/drivers/iris/iris_context.h | 4 ++++
src/gallium/drivers/iris/iris_draw.c | 21 +++++++++++++++++++++
src/gallium/drivers/iris/iris_program.c | 28 +++++++++++++++++++++++++++-
src/gallium/drivers/iris/iris_state.c | 16 +++++++++++++++-
4 files changed, 67 insertions(+), 2 deletions(-)


  • Share