diff options
author | Kenneth Graunke <[email protected]> | 2017-08-17 00:17:05 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-08-19 00:46:36 -0700 |
commit | 5db9757bd76ce920b302974ca107802c6a6fbba9 (patch) | |
tree | ceabadf2e8bb0ba29e7fa626c4d7271c9be2d8bc /src/intel/isl/isl.h | |
parent | 288621b1b7bdfaeab58a3b720c58c3417b206a06 (diff) |
isl: Add a null surface fill function.
ISL already offers functions to fill out most kinds of SURFACE_STATE,
so why not handle null surfaces too?
Null surfaces are simple, so we can just take the dimensions, rather
than an entirte fill structure.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/isl/isl.h')
-rw-r--r-- | src/intel/isl/isl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h index 0e6fc774862..ca4556ffcff 100644 --- a/src/intel/isl/isl.h +++ b/src/intel/isl/isl.h @@ -1691,6 +1691,10 @@ void isl_buffer_fill_state_s(const struct isl_device *dev, void *state, const struct isl_buffer_fill_state_info *restrict info); +void +isl_null_fill_state(const struct isl_device *dev, void *state, + struct isl_extent3d size); + #define isl_emit_depth_stencil_hiz(dev, batch, ...) \ isl_emit_depth_stencil_hiz_s((dev), (batch), \ &(struct isl_depth_stencil_hiz_emit_info) { __VA_ARGS__ }) |