intel/blorp: Take a fast_clear_op in ccs_resolve
Eventually, we may want to just have a single blorp_ccs_op function that does both clears and resolves. For now we'll stick to just making the ccs_resolve function we have now a bit more configurable. Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
@@ -167,10 +167,18 @@ blorp_clear_attachments(struct blorp_batch *batch,
|
||||
bool clear_depth, float depth_value,
|
||||
uint8_t stencil_mask, uint8_t stencil_value);
|
||||
|
||||
enum blorp_fast_clear_op {
|
||||
BLORP_FAST_CLEAR_OP_NONE = 0,
|
||||
BLORP_FAST_CLEAR_OP_CLEAR,
|
||||
BLORP_FAST_CLEAR_OP_RESOLVE_PARTIAL,
|
||||
BLORP_FAST_CLEAR_OP_RESOLVE_FULL,
|
||||
};
|
||||
|
||||
void
|
||||
blorp_ccs_resolve(struct blorp_batch *batch,
|
||||
struct blorp_surf *surf, uint32_t level, uint32_t layer,
|
||||
enum isl_format format);
|
||||
enum isl_format format,
|
||||
enum blorp_fast_clear_op resolve_op);
|
||||
|
||||
/**
|
||||
* For an overview of the HiZ operations, see the following sections of the
|
||||
|
Reference in New Issue
Block a user