Skip to content

Commit

Permalink
Some misc changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
woachk committed Feb 18, 2019
1 parent 8e357ed commit 8192746
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
14 changes: 3 additions & 11 deletions render-only-sample/roskmd/RosKmdAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1917,12 +1917,7 @@ NTSTATUS RosKmAdapter::GetStandardAllocationDriverData (
allocParams->m_hwLayout = RosHwLayout::Linear;
allocParams->m_hwWidthPixels = surfData->Width;
allocParams->m_hwHeightPixels = surfData->Height;

allocParams->m_hwFormat = RosHwFormat::X8888;
allocParams->m_hwPitchBytes = surfData->Width * 4;
allocParams->m_hwSizeBytes = allocParams->m_hwPitchBytes * surfData->Height;
allocParams->m_hwFormat = RosHwFormat::X8888;
//allocParams->m_hwSizeBytes = surfData->Width * 4 * surfData->Height;
allocParams->m_hwSizeBytes = surfData->Width * 4 * surfData->Height;

return STATUS_SUCCESS;
}
Expand Down Expand Up @@ -1966,11 +1961,8 @@ NTSTATUS RosKmAdapter::GetStandardAllocationDriverData (
allocParams->m_primaryDesc.DriverFlags = 0;
allocParams->m_hwLayout = RosHwLayout::Linear;
allocParams->m_hwWidthPixels = surfData->Width;
allocParams->m_hwHeightPixels = surfData->Height;
allocParams->m_hwFormat = RosHwFormat::X8888;
allocParams->m_hwPitchBytes = surfData->Width * 4;
allocParams->m_hwSizeBytes = allocParams->m_hwPitchBytes * surfData->Height;
//allocParams->m_hwSizeBytes = surfData->Width * 4 * surfData->Height;
allocParams->m_hwHeightPixels = surfData->Height;
allocParams->m_hwSizeBytes = surfData->Width * 4 * surfData->Height;

Args->pCreateShadowSurfaceData->Pitch = surfData->Width * 4; //allocParams->m_hwPitchBytes;
return STATUS_SUCCESS;
Expand Down
10 changes: 5 additions & 5 deletions render-only-sample/rosumd/RosUmdResource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -514,11 +514,11 @@ RosUmdResource::CalculateMemoryLayout(
// Disable tiled format until issue #48 is fixed.
//
// Force tiled layout for given configuration only
// if ((m_usage == D3D10_DDI_USAGE_DEFAULT) &&
// (m_bindFlags == D3D10_DDI_BIND_SHADER_RESOURCE))
// {
// m_hwLayout = RosHwLayout::Tiled;
// }
if ((m_usage == D3D10_DDI_USAGE_DEFAULT) &&
(m_bindFlags == D3D10_DDI_BIND_SHADER_RESOURCE))
{
m_hwLayout = RosHwLayout::Tiled;
}

// Using system memory linear MipMap as example
m_hwWidthPixels = m_mip0Info.TexelWidth;
Expand Down

0 comments on commit 8192746

Please sign in to comment.