1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[dxvk] Remove unused discardBuffer method

Unused and not safe to use.
This commit is contained in:
Philip Rebohle 2024-09-18 15:54:32 +02:00
parent c8410e578e
commit 18ecc17e59
2 changed files with 0 additions and 23 deletions

View File

@ -1219,17 +1219,6 @@ namespace dxvk {
}
void DxvkContext::discardBuffer(
const Rc<DxvkBuffer>& buffer) {
if ((buffer->memFlags() & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT)
|| (buffer->info().flags & VK_BUFFER_CREATE_SPARSE_BINDING_BIT))
return;
if (m_execBarriers.isBufferDirty(buffer->getSliceHandle(), DxvkAccess::Write))
this->invalidateBuffer(buffer, buffer->allocSlice());
}
void DxvkContext::discardImageView(
const Rc<DxvkImageView>& imageView,
VkImageAspectFlags discardAspects) {

View File

@ -705,18 +705,6 @@ namespace dxvk {
const uint32_t* pages,
const Rc<DxvkBuffer>& srcBuffer,
VkDeviceSize srcOffset);
/**
* \brief Discards a buffer
*
* Renames the buffer in case it is currently
* used by the GPU in order to avoid having to
* insert barriers before future commands using
* the buffer.
* \param [in] buffer The buffer to discard
*/
void discardBuffer(
const Rc<DxvkBuffer>& buffer);
/**
* \brief Discards contents of an image view