Force 1080p output mode

This commit is contained in:
illusion98 2019-12-19 04:16:52 -05:00 committed by illusion
parent e2c8937bb6
commit 4c6b6a11e9
2 changed files with 4 additions and 4 deletions

View File

@ -327,8 +327,8 @@ class D3D12CommandProcessor : public CommandProcessor {
uint8_t* gamma_ramp_upload_mapping_ = nullptr;
D3D12_PLACED_SUBRESOURCE_FOOTPRINT gamma_ramp_footprints_[kQueueFrames * 2];
static constexpr uint32_t kSwapTextureWidth = 1280;
static constexpr uint32_t kSwapTextureHeight = 720;
static constexpr uint32_t kSwapTextureWidth = 1920;
static constexpr uint32_t kSwapTextureHeight = 1080;
inline std::pair<uint32_t, uint32_t> GetSwapTextureSize() const {
if (texture_cache_->IsResolutionScale2X()) {
return std::make_pair(kSwapTextureWidth * 2, kSwapTextureHeight * 2);

View File

@ -132,8 +132,8 @@ DECLARE_XBOXKRNL_EXPORT1(VdGetCurrentDisplayInformation, kVideo, kStub);
void VdQueryVideoMode(pointer_t<X_VIDEO_MODE> video_mode) {
// TODO(benvanik): get info from actual display.
video_mode.Zero();
video_mode->display_width = 1280;
video_mode->display_height = 720;
video_mode->display_width = 1920;
video_mode->display_height = 1080;
video_mode->is_interlaced = 0;
video_mode->is_widescreen = 1;
video_mode->is_hi_def = 1;