summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/v3d/v3d_context.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-12-26 20:41:42 -0800
committerEric Anholt <[email protected]>2019-01-27 08:30:03 -0800
commit5fe4250a2c7294d4d552759ccce43314dc61189f (patch)
treef8bc358933a1063ac93544bd7ca6030a0613c561 /src/gallium/drivers/v3d/v3d_context.h
parent09472006ff15316900fb2bb23fb639066f148fb5 (diff)
v3d: Move the sampler state to the long-lived state uploader.
Samplers are small (8-24 bytes), so allocating 4k for them is a huge waste.
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_context.h')
-rw-r--r--src/gallium/drivers/v3d/v3d_context.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/v3d/v3d_context.h b/src/gallium/drivers/v3d/v3d_context.h
index ef873237c0c..1b37681c702 100644
--- a/src/gallium/drivers/v3d/v3d_context.h
+++ b/src/gallium/drivers/v3d/v3d_context.h
@@ -114,7 +114,8 @@ struct v3d_sampler_state {
/* V3D 3.x: Packed texture state. */
uint8_t texture_shader_state[32];
/* V3D 4.x: Sampler state struct. */
- struct v3d_bo *bo;
+ struct pipe_resource *sampler_state;
+ uint32_t sampler_state_offset;
};
struct v3d_texture_stateobj {