diff options
author | Kenneth Graunke <[email protected]> | 2019-03-22 00:42:56 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-04-23 15:57:07 -0700 |
commit | 2208d5a68370e088aee8d25aff4b3f2e732b3a47 (patch) | |
tree | ddbe247ceca0701e8831ca2dbaed25ee4c1af6de /src/gallium/drivers/iris/iris_context.h | |
parent | 38db20245b3f1e12a0d2535020ba61b42491c8c7 (diff) |
iris: Fix DrawTransformFeedback math when there's a buffer offset
We need to subtract the starting offset from the final offset before
dividing by the stride. See src/intel/vulkan/genX_cmd_buffer.c:3142.
Not known to fix anything.
Diffstat (limited to 'src/gallium/drivers/iris/iris_context.h')
-rw-r--r-- | src/gallium/drivers/iris/iris_context.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_context.h b/src/gallium/drivers/iris/iris_context.h index ab70fc58718..f660c9ae251 100644 --- a/src/gallium/drivers/iris/iris_context.h +++ b/src/gallium/drivers/iris/iris_context.h @@ -782,6 +782,9 @@ bool iris_blorp_upload_shader(struct blorp_batch *blorp_batch, void iris_math_div32_gpr0(struct iris_context *ice, struct iris_batch *batch, uint32_t D); +void iris_math_add32_gpr0(struct iris_context *ice, + struct iris_batch *batch, + uint32_t x); uint64_t iris_timebase_scale(const struct gen_device_info *devinfo, uint64_t gpu_timestamp); |