summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_gpe.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-06-26 13:44:27 +0800
committerChia-I Wu <[email protected]>2013-06-26 16:42:46 +0800
commit95c21f12f321bb33ae8e1f1b255680ac8eeffade (patch)
treebe15c847df41f9b7b82c7ad18c2891b0b7c0bb12 /src/gallium/drivers/ilo/ilo_gpe.h
parent5fb5d4f0a6208e720998bbdbfe83df1035957f4a (diff)
ilo: support PIPE_CAP_USER_INDEX_BUFFERS
We want to access the user buffer, if available, when primitive restart is enabled and the restart index/primitive type is not natively supported. And since we are handling index buffer uploads in the driver with this change, we can also work around misalignment of index buffer offsets.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_gpe.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_gpe.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_gpe.h b/src/gallium/drivers/ilo/ilo_gpe.h
index 7825e58a40f..aa979f31a09 100644
--- a/src/gallium/drivers/ilo/ilo_gpe.h
+++ b/src/gallium/drivers/ilo/ilo_gpe.h
@@ -64,6 +64,9 @@ struct ilo_vb_state {
struct ilo_ib_state {
struct pipe_index_buffer state;
+
+ struct pipe_resource *resource;
+ int64_t draw_start_offset;
};
struct ilo_ve_cso {