return width;
}
+void
+v3d_flag_dirty_sampler_state(struct v3d_context *v3d,
+ enum pipe_shader_type shader)
+{
+ switch (shader) {
+ case PIPE_SHADER_VERTEX:
+ v3d->dirty |= VC5_DIRTY_VERTTEX;
+ break;
+ case PIPE_SHADER_GEOMETRY:
+ v3d->dirty |= VC5_DIRTY_GEOMTEX;
+ break;
+ case PIPE_SHADER_FRAGMENT:
+ v3d->dirty |= VC5_DIRTY_FRAGTEX;
+ break;
+ case PIPE_SHADER_COMPUTE:
+ v3d->dirty |= VC5_DIRTY_COMPTEX;
+ break;
+ default:
+ unreachable("Unsupported shader stage");
+ }
+}
+
static void
v3d_context_destroy(struct pipe_context *pctx)
{
float v3d_get_real_line_width(struct v3d_context *v3d);
+void v3d_flag_dirty_sampler_state(struct v3d_context *v3d,
+ enum pipe_shader_type shader);
+
#ifdef v3dX
# include "v3dx_context.h"
#else
}
static void
-v3d_flag_dirty_sampler_state(struct v3d_context *v3d,
- enum pipe_shader_type shader)
-{
- switch (shader) {
- case PIPE_SHADER_VERTEX:
- v3d->dirty |= VC5_DIRTY_VERTTEX;
- break;
- case PIPE_SHADER_GEOMETRY:
- v3d->dirty |= VC5_DIRTY_GEOMTEX;
- break;
- case PIPE_SHADER_FRAGMENT:
- v3d->dirty |= VC5_DIRTY_FRAGTEX;
- break;
- case PIPE_SHADER_COMPUTE:
- v3d->dirty |= VC5_DIRTY_COMPTEX;
- break;
- default:
- unreachable("Unsupported shader stage");
- }
-}
-
-static void
v3d_sampler_states_bind(struct pipe_context *pctx,
enum pipe_shader_type shader, unsigned start,
unsigned nr, void **hwcso)