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.c | |
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.c')
-rw-r--r-- | src/intel/isl/isl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c index 3788f9c2ead..59f512fc050 100644 --- a/src/intel/isl/isl.c +++ b/src/intel/isl/isl.c @@ -1812,6 +1812,13 @@ isl_buffer_fill_state_s(const struct isl_device *dev, void *state, } void +isl_null_fill_state(const struct isl_device *dev, void *state, + struct isl_extent3d size) +{ + isl_genX_call(dev, null_fill_state, state, size); +} + +void isl_emit_depth_stencil_hiz_s(const struct isl_device *dev, void *batch, const struct isl_depth_stencil_hiz_emit_info *restrict info) { |