core/d3d11+d3d12: consume the pre-baked Bilinear batch FS blobs
Wires GPU_HW_D3D12::GetBatchPipeline and GPU_HW_D3D11::GetBatch PixelShader to a new PickBatchTexturedBilinearFS picker that serves the 144 Bilinear-family DXBC blobs landed at the269a2a0foundation commit. Same shape as the Nearest activation pair (a7f5717D3D12 +74b28beD3D11), just with a fifth picker input - `binalpha` - that selects between the two Bilinear enum values (GPUTextureFilter::Bilinear and ::BilinearBinAlpha). After this commit, the textured slice fork in GetBatchPipeline / GetBatchPixelShader fans out into three pre-baked arms (untextured, Nearest, Bilinear-family) and one shadergen-fallback arm (JINC2 / JINC2BinAlpha / xBR / xBRBinAlpha). Two more foundation + activation pairs land the remaining four filter variants; after that, the fallback arm becomes unreachable and can be deleted together with the now-redundant tmp_shadergen path on the D3D11 side. What changes: src/common/d3d_common/embedded_shaders.h 288 new extern declarations for the 144 Bilinear blobs (uint8_t array + size_t pair per blob). Section header comment documents the 5 -D variant axes (texture mode, dual source, interp tri-state, persp, BinAlpha) and the .inc naming convention (pXrY_d{0,1}_{none,centroid,sample}_n{0,1}_ b{0,1}). The new BINALPHA axis vs Nearest is what doubles the blob count from 72 to 144. 1 new picker function declaration: Bytecode PickBatchTexturedBilinearFS( uint8_t lookup_mode, bool binalpha, bool use_dual_source, uint32_t multisamples, bool per_sample_shading, bool disable_color_perspective); Signature matches the Nearest picker plus the `binalpha` bool that drives the b_idx dimension of the static blob table. src/common/d3d_common/embedded_shaders.cpp 144 new #include lines pulling in the .inc files inside the D3DCommon::EmbeddedShaders namespace. 1 new picker implementation. 5-dim static table: static const Bytecode k_blobs[6][2][2][3][2] = // [tm][binalpha][use_dual_source][interp][persp] 6 (tex_mode) x 2 (binalpha) x 2 (dual) x 3 (interp) x 2 (persp) = 144 entries. The tm_idx encoding is identical to the Nearest picker - lookup_mode bit 2 is RawTextureBit, bits 0..1 are actual_mode with the Reserved_Direct16Bit -> Direct16Bit dedup already applied by the caller. interp_idx encoding mirrors ShaderGen::GetInterpolationQualifier (per_sample_shading => 2; multisamples > 1 => 1; else 0). persp_idx is just `disable_color_perspective ? 1 : 0`. src/core/gpu_hw_d3d12.cpp GetBatchPipeline fragment-shader fork extends from the pre-this-commit (untextured, Nearest, shadergen-else) to (untextured, Nearest, Bilinear-family, shadergen-else). The new arm: else if (filter == GPUTextureFilter::Bilinear || filter == GPUTextureFilter::BilinearBinAlpha) { const bool binalpha = (filter == GPUTextureFilter::BilinearBinAlpha); const auto bc = D3DCommon::EmbeddedShaders::PickBatchTexturedBilinearFS( lookup_mode, binalpha, use_dual_source, m_multisamples, m_per_sample_shading, m_disable_color_perspective); fs_bc.pShaderBytecode = bc.data; fs_bc.BytecodeLength = bc.size; } The use_dual_source formula above the fork is unchanged - it already collapses `filter != Nearest` to true for every non-Nearest filter, so the same bit feeds Nearest and Bilinear identically. The blend-state branch later in GetBatchPipeline at line ~1435 already handles non-Nearest via the same condition; no edit needed there. precompile_sync pre_baked skip predicate (~line 905) extends from `texture_mode == Disabled || cur_filter == Nearest` to also include `cur_filter == Bilinear || cur_filter == BilinearBinAlpha`. The Enabled precompile path now skips D3DCompile on the Bilinear-family slices the same way it already skips Untextured + Nearest, so the upfront pipeline build time shrinks proportionally. The background ShaderCompileThreadEntryPoint loop is untouched - it calls GetBatchPipeline directly, which picks up the new branch automatically. The lazy fault-in via GetBatchPipeline on the draw path picks it up the same way. src/core/gpu_hw_d3d11.cpp GetBatchPixelShader gains a new textured_bilinear branch parallel to the existing textured_nearest one: else if (textured_bilinear) { const bool binalpha = (filter == GPUTextureFilter::BilinearBinAlpha); const auto bc = D3DCommon::EmbeddedShaders::PickBatchTexturedBilinearFS( lookup_mode, binalpha, use_dual_source, m_multisamples, m_per_sample_shading, m_disable_color_perspective); fresh = D3D11::ShaderCompiler::CreatePixelShader(m_device.Get(), bc.data, bc.size); } Same input set as the D3D12 picker call - the two backends consume the pickers identically since DXBC is API-neutral. The textured_bilinear bool is computed alongside the existing textured_nearest bool from filter and the untextured check; both feed into the if/else if/else if/else chain. The fallback else arm still constructs a tmp_shadergen + runs D3DCompile via m_shader_cache.GetPixelShader for the 4 remaining filter values (JINC2 / JINC2BinAlpha / xBR / xBRBinAlpha). The else arm shrinks further as the next two foundation + activation pairs land. What doesn't change: - Visual output: zero diff. fxc emits identical DXBC from the same HLSL whether invoked at edit-time via the regen tool (producing the .inc blobs) or at runtime via D3DCompile (the pre-this-commit path on Bilinear). - shadergen + D3DCompile still runs on JINC2 / JINC2BinAlpha / xBR / xBRBinAlpha. The shrinking-else logic on both backends keeps the slow path covered until those templates land. - m_batch_pixel_shaders matrix on D3D11 still has the [dithering] / [interlacing] dimensions that hold redundant entries post-cbuffer-routing. Collapse waits until all 4 filter templates land; then the matrix only stores reachable cells (no 4x-wasted slots). - m_supports_adaptive_downsampling on D3D12 stays false until the Phase 2 downsample port lands. - GPU_HW_D3D12::GetBatchFragmentShader (the shadergen + D3DCompile entry point for the still-fallback filters) is unchanged. Its m_batch_fragment_shader_blobs cache slots only get populated for the 4 remaining filters; the Bilinear family slots stay empty (the picker doesn't go through this function). Behavioural impact for users (D3D11 + D3D12 with Bilinear or BilinearBinAlpha): - CompilePipelines (Enabled mode) and the background ShaderCompileThreadEntryPoint (Lazy mode) skip D3DCompile on 6 (texture_mode) x 2 (binalpha) x 5 (transparency_mode) x 4 (render_mode) x 2 (depth_test) = 480 PSO build cells for each Bilinear filter session. Cold-start D3DCompile cost per cell is roughly 5-15 ms; the saving is hundreds of ms to several seconds of init time depending on m_multisamples and m_per_sample_shading. - On-disk shader cache shrinks for Bilinear sessions. Existing Bilinear-cell entries from older versions remain on disk but go unconsumed (the picker bypasses m_shader_cache). - DrawBatchVertices is unchanged - same PSO lookup, same fast-path atomic load, same draw call. Only the source of the bound ID3D11PixelShader / ID3D12PipelineState's FS changes from m_shader_cache-managed to picker-driven. Test: - g++ -std=c++17 -c on src/common/d3d_common/embedded_shaders.cpp standalone compiles cleanly. nm shows all 7 pickers in D3DCommon::EmbeddedShaders (3 batch FS - Untextured, Nearest, Bilinear - + 4 downsample). .o size grows from 1.5 MiB to 2.6 MiB; the delta is the embedded Bilinear DXBC payload (~900 KiB) plus per-blob symbol overhead. - g++ -std=c++17 syntax check on the new D3D12 Bilinear branch using a shim TU (ComPtr / ID3DBlob / D3D12_SHADER_ BYTECODE + the real embedded_shaders.h) compiles cleanly. All 3 picker arms + the shadergen-fallback arm type-check. Cumulative pre-bake state across both backends: Pre-arc: 75 264 (every axis a -D) Post-cbuffer-routing arc: 1 176 Post-c01f8ae /a7f5717(untextured + Nearest, both backends): 168 cell-equivalents Post-2fcf4cc (D3D11 downsample live): 22 additional cells Post-this-commit (Bilinear-family live, both backends): +288 cell-equivalents (144 cells x 2 backends) Next: - JINC2 / JINC2BinAlpha foundation + activation pair. Same shape as Bilinear; the BinAlpha axis collapses two filter enum values into a single template with a BINALPHA -D arm. 144 variants. - xBR / xBRBinAlpha foundation + activation pair. Same shape. 144 variants. - After all 4 filter templates land, the shadergen-fallback arm in GetBatchPipeline / GetBatchPixelShader becomes unreachable and can be deleted (with the tmp_shadergen helper on D3D11 going with it). The m_batch_pixel_shaders matrix on D3D11 can then drop its [dithering] / [interlacing] dimensions, since every cell goes through the lock-free picker-driven CreatePixelShader path that no longer needs matrix-level dedup. - Independent: Phase 2 D3D12 downsample port - PSOs, explicit resource barriers, texture / mip-view creation. Uses the pre-baked blobs from251e457+ the d3d_common rename at0ed7261.
This commit is contained in:
parent
269a2a0763
commit
f2ae92ae26
4 changed files with 1055 additions and 9 deletions
|
|
@ -181,6 +181,151 @@ namespace D3DCommon::EmbeddedShaders {
|
|||
#include "embedded_dxbc/batch_textured_nearest_ps_p8r1_d1_sample_n0.inc"
|
||||
#include "embedded_dxbc/batch_textured_nearest_ps_p8r1_d1_sample_n1.inc"
|
||||
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d0_centroid_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d0_centroid_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d0_centroid_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d0_centroid_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d0_none_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d0_none_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d0_none_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d0_none_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d0_sample_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d0_sample_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d0_sample_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d0_sample_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d1_centroid_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d1_centroid_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d1_centroid_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d1_centroid_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d1_none_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d1_none_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d1_none_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d1_none_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d1_sample_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d1_sample_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d1_sample_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r0_d1_sample_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d0_centroid_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d0_centroid_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d0_centroid_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d0_centroid_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d0_none_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d0_none_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d0_none_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d0_none_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d0_sample_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d0_sample_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d0_sample_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d0_sample_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d1_centroid_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d1_centroid_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d1_centroid_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d1_centroid_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d1_none_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d1_none_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d1_none_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d1_none_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d1_sample_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d1_sample_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d1_sample_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p0r1_d1_sample_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d0_centroid_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d0_centroid_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d0_centroid_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d0_centroid_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d0_none_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d0_none_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d0_none_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d0_none_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d0_sample_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d0_sample_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d0_sample_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d0_sample_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d1_centroid_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d1_centroid_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d1_centroid_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d1_centroid_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d1_none_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d1_none_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d1_none_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d1_none_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d1_sample_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d1_sample_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d1_sample_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r0_d1_sample_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d0_centroid_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d0_centroid_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d0_centroid_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d0_centroid_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d0_none_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d0_none_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d0_none_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d0_none_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d0_sample_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d0_sample_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d0_sample_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d0_sample_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d1_centroid_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d1_centroid_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d1_centroid_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d1_centroid_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d1_none_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d1_none_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d1_none_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d1_none_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d1_sample_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d1_sample_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d1_sample_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p4r1_d1_sample_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d0_centroid_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d0_centroid_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d0_centroid_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d0_centroid_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d0_none_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d0_none_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d0_none_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d0_none_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d0_sample_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d0_sample_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d0_sample_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d0_sample_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d1_centroid_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d1_centroid_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d1_centroid_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d1_centroid_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d1_none_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d1_none_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d1_none_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d1_none_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d1_sample_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d1_sample_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d1_sample_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r0_d1_sample_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d0_centroid_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d0_centroid_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d0_centroid_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d0_centroid_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d0_none_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d0_none_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d0_none_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d0_none_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d0_sample_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d0_sample_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d0_sample_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d0_sample_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d1_centroid_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d1_centroid_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d1_centroid_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d1_centroid_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d1_none_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d1_none_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d1_none_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d1_none_n1_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d1_sample_n0_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d1_sample_n0_b1.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d1_sample_n1_b0.inc"
|
||||
#include "embedded_dxbc/batch_textured_bilinear_ps_p8r1_d1_sample_n1_b1.inc"
|
||||
|
||||
#include "embedded_dxbc/adaptive_downsample_blur_ps.inc"
|
||||
#include "embedded_dxbc/adaptive_downsample_composite_ps_s16.inc"
|
||||
#include "embedded_dxbc/adaptive_downsample_composite_ps_s2.inc"
|
||||
|
|
@ -576,6 +721,536 @@ Bytecode PickBatchTexturedNearestFS(
|
|||
return k_blobs[tm_idx][use_dual_source ? 1 : 0][interp_idx][persp_idx];
|
||||
}
|
||||
|
||||
Bytecode PickBatchTexturedBilinearFS(
|
||||
uint8_t lookup_mode, bool binalpha, bool use_dual_source,
|
||||
uint32_t multisamples, bool per_sample_shading,
|
||||
bool disable_color_perspective)
|
||||
{
|
||||
// texture_mode dim: same encoding as PickBatchTexturedNearestFS.
|
||||
// lookup_mode is a 3-bit value with
|
||||
// bits 0..1 = actual_mode (0 = Palette4Bit, 1 = Palette8Bit,
|
||||
// 2 = Direct16Bit; 3 = Reserved_Direct16Bit, mapped
|
||||
// to 2 by the caller)
|
||||
// bit 2 = RawTextureBit
|
||||
// The 6 reachable combos map to a 6-slot dim. See the Nearest
|
||||
// picker for the full table; alphabetical order matches the
|
||||
// .inc filename ordering:
|
||||
// 0: p0r0 Direct16Bit (actual=2, raw=0)
|
||||
// 1: p0r1 RawDirect16Bit (actual=2, raw=1)
|
||||
// 2: p4r0 Palette4Bit (actual=0, raw=0)
|
||||
// 3: p4r1 RawPalette4Bit (actual=0, raw=1)
|
||||
// 4: p8r0 Palette8Bit (actual=1, raw=0)
|
||||
// 5: p8r1 RawPalette8Bit (actual=1, raw=1)
|
||||
const uint8_t actual_mode = lookup_mode & 0x3u;
|
||||
const bool raw = (lookup_mode & 0x4u) != 0;
|
||||
unsigned tm_idx;
|
||||
if (actual_mode == 2u) // Direct16Bit family
|
||||
tm_idx = raw ? 1u : 0u;
|
||||
else if (actual_mode == 0u) // Palette4Bit family
|
||||
tm_idx = raw ? 3u : 2u;
|
||||
else // actual_mode == 1u (Palette8Bit family)
|
||||
tm_idx = raw ? 5u : 4u;
|
||||
|
||||
// 0 = none, 1 = centroid, 2 = sample. Mirror of
|
||||
// ShaderGen::GetInterpolationQualifier.
|
||||
const unsigned interp_idx =
|
||||
per_sample_shading ? 2u : ((multisamples > 1u) ? 1u : 0u);
|
||||
const unsigned persp_idx = disable_color_perspective ? 1u : 0u;
|
||||
const unsigned dual_idx = use_dual_source ? 1u : 0u;
|
||||
const unsigned b_idx = binalpha ? 1u : 0u;
|
||||
|
||||
static const Bytecode k_blobs[6][2][2][3][2] = {
|
||||
// tm = p0r0 (Direct16Bit)
|
||||
{
|
||||
// binalpha = Bilinear
|
||||
{
|
||||
// no dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p0r0_d0_none_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p0r0_d0_none_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r0_d0_none_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p0r0_d0_none_n1_b0_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p0r0_d0_centroid_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p0r0_d0_centroid_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r0_d0_centroid_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p0r0_d0_centroid_n1_b0_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p0r0_d0_sample_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p0r0_d0_sample_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r0_d0_sample_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p0r0_d0_sample_n1_b0_size_bytes}},
|
||||
},
|
||||
// dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p0r0_d1_none_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p0r0_d1_none_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r0_d1_none_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p0r0_d1_none_n1_b0_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p0r0_d1_centroid_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p0r0_d1_centroid_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r0_d1_centroid_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p0r0_d1_centroid_n1_b0_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p0r0_d1_sample_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p0r0_d1_sample_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r0_d1_sample_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p0r0_d1_sample_n1_b0_size_bytes}},
|
||||
},
|
||||
},
|
||||
// binalpha = BilinearBinAlpha
|
||||
{
|
||||
// no dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p0r0_d0_none_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p0r0_d0_none_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r0_d0_none_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p0r0_d0_none_n1_b1_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p0r0_d0_centroid_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p0r0_d0_centroid_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r0_d0_centroid_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p0r0_d0_centroid_n1_b1_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p0r0_d0_sample_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p0r0_d0_sample_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r0_d0_sample_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p0r0_d0_sample_n1_b1_size_bytes}},
|
||||
},
|
||||
// dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p0r0_d1_none_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p0r0_d1_none_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r0_d1_none_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p0r0_d1_none_n1_b1_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p0r0_d1_centroid_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p0r0_d1_centroid_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r0_d1_centroid_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p0r0_d1_centroid_n1_b1_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p0r0_d1_sample_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p0r0_d1_sample_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r0_d1_sample_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p0r0_d1_sample_n1_b1_size_bytes}},
|
||||
},
|
||||
},
|
||||
},
|
||||
// tm = p0r1 (RawDirect16Bit)
|
||||
{
|
||||
// binalpha = Bilinear
|
||||
{
|
||||
// no dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p0r1_d0_none_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p0r1_d0_none_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r1_d0_none_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p0r1_d0_none_n1_b0_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p0r1_d0_centroid_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p0r1_d0_centroid_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r1_d0_centroid_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p0r1_d0_centroid_n1_b0_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p0r1_d0_sample_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p0r1_d0_sample_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r1_d0_sample_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p0r1_d0_sample_n1_b0_size_bytes}},
|
||||
},
|
||||
// dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p0r1_d1_none_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p0r1_d1_none_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r1_d1_none_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p0r1_d1_none_n1_b0_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p0r1_d1_centroid_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p0r1_d1_centroid_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r1_d1_centroid_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p0r1_d1_centroid_n1_b0_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p0r1_d1_sample_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p0r1_d1_sample_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r1_d1_sample_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p0r1_d1_sample_n1_b0_size_bytes}},
|
||||
},
|
||||
},
|
||||
// binalpha = BilinearBinAlpha
|
||||
{
|
||||
// no dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p0r1_d0_none_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p0r1_d0_none_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r1_d0_none_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p0r1_d0_none_n1_b1_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p0r1_d0_centroid_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p0r1_d0_centroid_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r1_d0_centroid_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p0r1_d0_centroid_n1_b1_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p0r1_d0_sample_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p0r1_d0_sample_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r1_d0_sample_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p0r1_d0_sample_n1_b1_size_bytes}},
|
||||
},
|
||||
// dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p0r1_d1_none_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p0r1_d1_none_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r1_d1_none_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p0r1_d1_none_n1_b1_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p0r1_d1_centroid_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p0r1_d1_centroid_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r1_d1_centroid_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p0r1_d1_centroid_n1_b1_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p0r1_d1_sample_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p0r1_d1_sample_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p0r1_d1_sample_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p0r1_d1_sample_n1_b1_size_bytes}},
|
||||
},
|
||||
},
|
||||
},
|
||||
// tm = p4r0 (Palette4Bit)
|
||||
{
|
||||
// binalpha = Bilinear
|
||||
{
|
||||
// no dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p4r0_d0_none_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p4r0_d0_none_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r0_d0_none_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p4r0_d0_none_n1_b0_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p4r0_d0_centroid_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p4r0_d0_centroid_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r0_d0_centroid_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p4r0_d0_centroid_n1_b0_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p4r0_d0_sample_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p4r0_d0_sample_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r0_d0_sample_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p4r0_d0_sample_n1_b0_size_bytes}},
|
||||
},
|
||||
// dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p4r0_d1_none_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p4r0_d1_none_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r0_d1_none_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p4r0_d1_none_n1_b0_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p4r0_d1_centroid_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p4r0_d1_centroid_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r0_d1_centroid_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p4r0_d1_centroid_n1_b0_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p4r0_d1_sample_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p4r0_d1_sample_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r0_d1_sample_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p4r0_d1_sample_n1_b0_size_bytes}},
|
||||
},
|
||||
},
|
||||
// binalpha = BilinearBinAlpha
|
||||
{
|
||||
// no dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p4r0_d0_none_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p4r0_d0_none_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r0_d0_none_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p4r0_d0_none_n1_b1_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p4r0_d0_centroid_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p4r0_d0_centroid_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r0_d0_centroid_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p4r0_d0_centroid_n1_b1_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p4r0_d0_sample_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p4r0_d0_sample_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r0_d0_sample_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p4r0_d0_sample_n1_b1_size_bytes}},
|
||||
},
|
||||
// dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p4r0_d1_none_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p4r0_d1_none_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r0_d1_none_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p4r0_d1_none_n1_b1_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p4r0_d1_centroid_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p4r0_d1_centroid_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r0_d1_centroid_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p4r0_d1_centroid_n1_b1_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p4r0_d1_sample_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p4r0_d1_sample_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r0_d1_sample_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p4r0_d1_sample_n1_b1_size_bytes}},
|
||||
},
|
||||
},
|
||||
},
|
||||
// tm = p4r1 (RawPalette4Bit)
|
||||
{
|
||||
// binalpha = Bilinear
|
||||
{
|
||||
// no dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p4r1_d0_none_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p4r1_d0_none_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r1_d0_none_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p4r1_d0_none_n1_b0_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p4r1_d0_centroid_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p4r1_d0_centroid_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r1_d0_centroid_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p4r1_d0_centroid_n1_b0_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p4r1_d0_sample_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p4r1_d0_sample_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r1_d0_sample_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p4r1_d0_sample_n1_b0_size_bytes}},
|
||||
},
|
||||
// dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p4r1_d1_none_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p4r1_d1_none_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r1_d1_none_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p4r1_d1_none_n1_b0_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p4r1_d1_centroid_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p4r1_d1_centroid_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r1_d1_centroid_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p4r1_d1_centroid_n1_b0_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p4r1_d1_sample_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p4r1_d1_sample_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r1_d1_sample_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p4r1_d1_sample_n1_b0_size_bytes}},
|
||||
},
|
||||
},
|
||||
// binalpha = BilinearBinAlpha
|
||||
{
|
||||
// no dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p4r1_d0_none_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p4r1_d0_none_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r1_d0_none_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p4r1_d0_none_n1_b1_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p4r1_d0_centroid_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p4r1_d0_centroid_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r1_d0_centroid_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p4r1_d0_centroid_n1_b1_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p4r1_d0_sample_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p4r1_d0_sample_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r1_d0_sample_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p4r1_d0_sample_n1_b1_size_bytes}},
|
||||
},
|
||||
// dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p4r1_d1_none_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p4r1_d1_none_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r1_d1_none_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p4r1_d1_none_n1_b1_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p4r1_d1_centroid_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p4r1_d1_centroid_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r1_d1_centroid_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p4r1_d1_centroid_n1_b1_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p4r1_d1_sample_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p4r1_d1_sample_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p4r1_d1_sample_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p4r1_d1_sample_n1_b1_size_bytes}},
|
||||
},
|
||||
},
|
||||
},
|
||||
// tm = p8r0 (Palette8Bit)
|
||||
{
|
||||
// binalpha = Bilinear
|
||||
{
|
||||
// no dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p8r0_d0_none_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p8r0_d0_none_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r0_d0_none_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p8r0_d0_none_n1_b0_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p8r0_d0_centroid_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p8r0_d0_centroid_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r0_d0_centroid_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p8r0_d0_centroid_n1_b0_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p8r0_d0_sample_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p8r0_d0_sample_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r0_d0_sample_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p8r0_d0_sample_n1_b0_size_bytes}},
|
||||
},
|
||||
// dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p8r0_d1_none_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p8r0_d1_none_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r0_d1_none_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p8r0_d1_none_n1_b0_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p8r0_d1_centroid_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p8r0_d1_centroid_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r0_d1_centroid_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p8r0_d1_centroid_n1_b0_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p8r0_d1_sample_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p8r0_d1_sample_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r0_d1_sample_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p8r0_d1_sample_n1_b0_size_bytes}},
|
||||
},
|
||||
},
|
||||
// binalpha = BilinearBinAlpha
|
||||
{
|
||||
// no dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p8r0_d0_none_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p8r0_d0_none_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r0_d0_none_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p8r0_d0_none_n1_b1_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p8r0_d0_centroid_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p8r0_d0_centroid_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r0_d0_centroid_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p8r0_d0_centroid_n1_b1_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p8r0_d0_sample_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p8r0_d0_sample_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r0_d0_sample_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p8r0_d0_sample_n1_b1_size_bytes}},
|
||||
},
|
||||
// dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p8r0_d1_none_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p8r0_d1_none_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r0_d1_none_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p8r0_d1_none_n1_b1_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p8r0_d1_centroid_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p8r0_d1_centroid_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r0_d1_centroid_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p8r0_d1_centroid_n1_b1_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p8r0_d1_sample_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p8r0_d1_sample_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r0_d1_sample_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p8r0_d1_sample_n1_b1_size_bytes}},
|
||||
},
|
||||
},
|
||||
},
|
||||
// tm = p8r1 (RawPalette8Bit)
|
||||
{
|
||||
// binalpha = Bilinear
|
||||
{
|
||||
// no dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p8r1_d0_none_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p8r1_d0_none_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r1_d0_none_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p8r1_d0_none_n1_b0_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p8r1_d0_centroid_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p8r1_d0_centroid_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r1_d0_centroid_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p8r1_d0_centroid_n1_b0_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p8r1_d0_sample_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p8r1_d0_sample_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r1_d0_sample_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p8r1_d0_sample_n1_b0_size_bytes}},
|
||||
},
|
||||
// dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p8r1_d1_none_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p8r1_d1_none_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r1_d1_none_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p8r1_d1_none_n1_b0_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p8r1_d1_centroid_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p8r1_d1_centroid_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r1_d1_centroid_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p8r1_d1_centroid_n1_b0_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p8r1_d1_sample_n0_b0,
|
||||
k_batch_textured_bilinear_ps_p8r1_d1_sample_n0_b0_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r1_d1_sample_n1_b0,
|
||||
k_batch_textured_bilinear_ps_p8r1_d1_sample_n1_b0_size_bytes}},
|
||||
},
|
||||
},
|
||||
// binalpha = BilinearBinAlpha
|
||||
{
|
||||
// no dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p8r1_d0_none_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p8r1_d0_none_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r1_d0_none_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p8r1_d0_none_n1_b1_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p8r1_d0_centroid_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p8r1_d0_centroid_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r1_d0_centroid_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p8r1_d0_centroid_n1_b1_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p8r1_d0_sample_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p8r1_d0_sample_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r1_d0_sample_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p8r1_d0_sample_n1_b1_size_bytes}},
|
||||
},
|
||||
// dual
|
||||
{
|
||||
// interp = none
|
||||
{{k_batch_textured_bilinear_ps_p8r1_d1_none_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p8r1_d1_none_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r1_d1_none_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p8r1_d1_none_n1_b1_size_bytes}},
|
||||
// interp = centroid
|
||||
{{k_batch_textured_bilinear_ps_p8r1_d1_centroid_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p8r1_d1_centroid_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r1_d1_centroid_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p8r1_d1_centroid_n1_b1_size_bytes}},
|
||||
// interp = sample
|
||||
{{k_batch_textured_bilinear_ps_p8r1_d1_sample_n0_b1,
|
||||
k_batch_textured_bilinear_ps_p8r1_d1_sample_n0_b1_size_bytes},
|
||||
{k_batch_textured_bilinear_ps_p8r1_d1_sample_n1_b1,
|
||||
k_batch_textured_bilinear_ps_p8r1_d1_sample_n1_b1_size_bytes}},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
return k_blobs[tm_idx][b_idx][dual_idx][interp_idx][persp_idx];
|
||||
}
|
||||
|
||||
// ---- Downsample pre-bake pickers -----------------------------------
|
||||
//
|
||||
// Tiny tables - 1, 2, 4, and 15 slots respectively. The
|
||||
|
|
|
|||
|
|
@ -114,6 +114,22 @@ Bytecode PickBatchTexturedNearestFS(uint8_t lookup_mode, bool use_dual_source,
|
|||
uint32_t multisamples, bool per_sample_shading,
|
||||
bool disable_color_perspective);
|
||||
|
||||
// Textured + Bilinear-family batch FS variant picker. Selects from
|
||||
// the 144 blobs at embedded_dxbc/batch_textured_bilinear_ps_*.inc.
|
||||
// Same axes as the Nearest picker, plus a `binalpha` boolean that
|
||||
// chooses between the Bilinear (binalpha=false) and BilinearBinAlpha
|
||||
// (binalpha=true) enum values of GPUTextureFilter - the two filters
|
||||
// share a single HLSL template with a BINALPHA -D gate on the
|
||||
// ialpha quantisation step at the end of FilteredSampleFromVRAM.
|
||||
//
|
||||
// 6 (tex_mode) x 2 (binalpha) x 2 (dual) x 3 (interp) x 2 (persp)
|
||||
// = 144 entries. Double the Nearest count because of the BINALPHA
|
||||
// axis.
|
||||
Bytecode PickBatchTexturedBilinearFS(uint8_t lookup_mode, bool binalpha,
|
||||
bool use_dual_source, uint32_t multisamples,
|
||||
bool per_sample_shading,
|
||||
bool disable_color_perspective);
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
// ---- Downsample pre-bake pickers -----------------------------------
|
||||
|
|
@ -683,6 +699,314 @@ extern const size_t k_batch_textured_nearest_ps_p8r1_d1_sample_n0_size_bytes;
|
|||
extern const uint8_t k_batch_textured_nearest_ps_p8r1_d1_sample_n1[];
|
||||
extern const size_t k_batch_textured_nearest_ps_p8r1_d1_sample_n1_size_bytes;
|
||||
|
||||
// Textured + Bilinear-family batch FS pre-baked DXBC blobs.
|
||||
// 144 .inc files at src/common/d3d_common/embedded_dxbc/
|
||||
// batch_textured_bilinear_ps_*.inc.
|
||||
//
|
||||
// Variant axes (5, all -D macros to fxc):
|
||||
// * 6 texture mode combos (3 -D: PALETTE_4_BIT / PALETTE_8_BIT /
|
||||
// RAW_TEXTURE; PALETTE_4_BIT and PALETTE_8_BIT mutually exclusive)
|
||||
// * USE_DUAL_SOURCE (0/1)
|
||||
// * INTERP_CENTROID / INTERP_SAMPLE (none/centroid/sample tri-state)
|
||||
// * NOPERSP (0/1)
|
||||
// * BINALPHA (0/1) - new vs Nearest. Gates the ialpha >= 0.5
|
||||
// quantisation step in FilteredSampleFromVRAM. BINALPHA=0 =>
|
||||
// Bilinear; BINALPHA=1 => BilinearBinAlpha.
|
||||
//
|
||||
// 6 x 2 x 3 x 2 x 2 = 144 blobs. Variant suffix:
|
||||
// pXrY_d{0,1}_{none,centroid,sample}_n{0,1}_b{0,1}
|
||||
//
|
||||
// Foundation commit: 269a2a0. Consumed by PickBatchTexturedBilinearFS.
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d0_centroid_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d0_centroid_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d0_centroid_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d0_centroid_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d0_centroid_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d0_centroid_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d0_centroid_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d0_centroid_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d0_none_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d0_none_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d0_none_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d0_none_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d0_none_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d0_none_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d0_none_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d0_none_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d0_sample_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d0_sample_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d0_sample_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d0_sample_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d0_sample_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d0_sample_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d0_sample_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d0_sample_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d1_centroid_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d1_centroid_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d1_centroid_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d1_centroid_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d1_centroid_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d1_centroid_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d1_centroid_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d1_centroid_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d1_none_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d1_none_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d1_none_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d1_none_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d1_none_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d1_none_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d1_none_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d1_none_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d1_sample_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d1_sample_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d1_sample_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d1_sample_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d1_sample_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d1_sample_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r0_d1_sample_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r0_d1_sample_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d0_centroid_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d0_centroid_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d0_centroid_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d0_centroid_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d0_centroid_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d0_centroid_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d0_centroid_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d0_centroid_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d0_none_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d0_none_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d0_none_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d0_none_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d0_none_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d0_none_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d0_none_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d0_none_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d0_sample_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d0_sample_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d0_sample_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d0_sample_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d0_sample_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d0_sample_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d0_sample_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d0_sample_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d1_centroid_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d1_centroid_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d1_centroid_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d1_centroid_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d1_centroid_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d1_centroid_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d1_centroid_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d1_centroid_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d1_none_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d1_none_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d1_none_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d1_none_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d1_none_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d1_none_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d1_none_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d1_none_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d1_sample_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d1_sample_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d1_sample_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d1_sample_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d1_sample_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d1_sample_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p0r1_d1_sample_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p0r1_d1_sample_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d0_centroid_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d0_centroid_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d0_centroid_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d0_centroid_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d0_centroid_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d0_centroid_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d0_centroid_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d0_centroid_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d0_none_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d0_none_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d0_none_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d0_none_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d0_none_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d0_none_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d0_none_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d0_none_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d0_sample_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d0_sample_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d0_sample_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d0_sample_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d0_sample_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d0_sample_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d0_sample_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d0_sample_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d1_centroid_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d1_centroid_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d1_centroid_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d1_centroid_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d1_centroid_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d1_centroid_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d1_centroid_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d1_centroid_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d1_none_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d1_none_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d1_none_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d1_none_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d1_none_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d1_none_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d1_none_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d1_none_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d1_sample_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d1_sample_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d1_sample_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d1_sample_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d1_sample_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d1_sample_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r0_d1_sample_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r0_d1_sample_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d0_centroid_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d0_centroid_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d0_centroid_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d0_centroid_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d0_centroid_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d0_centroid_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d0_centroid_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d0_centroid_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d0_none_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d0_none_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d0_none_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d0_none_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d0_none_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d0_none_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d0_none_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d0_none_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d0_sample_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d0_sample_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d0_sample_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d0_sample_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d0_sample_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d0_sample_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d0_sample_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d0_sample_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d1_centroid_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d1_centroid_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d1_centroid_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d1_centroid_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d1_centroid_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d1_centroid_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d1_centroid_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d1_centroid_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d1_none_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d1_none_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d1_none_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d1_none_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d1_none_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d1_none_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d1_none_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d1_none_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d1_sample_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d1_sample_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d1_sample_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d1_sample_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d1_sample_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d1_sample_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p4r1_d1_sample_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p4r1_d1_sample_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d0_centroid_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d0_centroid_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d0_centroid_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d0_centroid_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d0_centroid_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d0_centroid_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d0_centroid_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d0_centroid_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d0_none_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d0_none_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d0_none_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d0_none_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d0_none_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d0_none_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d0_none_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d0_none_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d0_sample_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d0_sample_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d0_sample_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d0_sample_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d0_sample_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d0_sample_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d0_sample_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d0_sample_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d1_centroid_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d1_centroid_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d1_centroid_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d1_centroid_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d1_centroid_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d1_centroid_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d1_centroid_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d1_centroid_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d1_none_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d1_none_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d1_none_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d1_none_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d1_none_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d1_none_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d1_none_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d1_none_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d1_sample_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d1_sample_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d1_sample_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d1_sample_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d1_sample_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d1_sample_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r0_d1_sample_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r0_d1_sample_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d0_centroid_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d0_centroid_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d0_centroid_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d0_centroid_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d0_centroid_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d0_centroid_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d0_centroid_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d0_centroid_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d0_none_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d0_none_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d0_none_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d0_none_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d0_none_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d0_none_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d0_none_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d0_none_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d0_sample_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d0_sample_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d0_sample_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d0_sample_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d0_sample_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d0_sample_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d0_sample_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d0_sample_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d1_centroid_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d1_centroid_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d1_centroid_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d1_centroid_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d1_centroid_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d1_centroid_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d1_centroid_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d1_centroid_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d1_none_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d1_none_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d1_none_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d1_none_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d1_none_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d1_none_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d1_none_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d1_none_n1_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d1_sample_n0_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d1_sample_n0_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d1_sample_n0_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d1_sample_n0_b1_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d1_sample_n1_b0[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d1_sample_n1_b0_size_bytes;
|
||||
extern const uint8_t k_batch_textured_bilinear_ps_p8r1_d1_sample_n1_b1[];
|
||||
extern const size_t k_batch_textured_bilinear_ps_p8r1_d1_sample_n1_b1_size_bytes;
|
||||
|
||||
|
||||
// Downsample fragment shaders. Backport of the 4 Vulkan downsample
|
||||
// templates (data/shaders/vulkan/{box_sample_downsample,
|
||||
// adaptive_downsample_blur, adaptive_downsample_mip,
|
||||
|
|
|
|||
|
|
@ -1397,6 +1397,9 @@ ID3D11PixelShader* GPU_HW_D3D11::GetBatchPixelShader(GPUTextureFilter filter, ui
|
|||
(static_cast<GPUTextureMode>(lookup_mode) == GPUTextureMode::Disabled);
|
||||
const bool textured_nearest =
|
||||
!untextured && (filter == GPUTextureFilter::Nearest);
|
||||
const bool textured_bilinear =
|
||||
!untextured && (filter == GPUTextureFilter::Bilinear ||
|
||||
filter == GPUTextureFilter::BilinearBinAlpha);
|
||||
|
||||
ComPtr<ID3D11PixelShader> fresh;
|
||||
if (untextured)
|
||||
|
|
@ -1413,8 +1416,26 @@ ID3D11PixelShader* GPU_HW_D3D11::GetBatchPixelShader(GPUTextureFilter filter, ui
|
|||
m_disable_color_perspective);
|
||||
fresh = D3D11::ShaderCompiler::CreatePixelShader(m_device.Get(), bc.data, bc.size);
|
||||
}
|
||||
else if (textured_bilinear)
|
||||
{
|
||||
// Third pre-baked batch FS slice. Mirror of the D3D12 branch
|
||||
// at GetBatchPipeline (gpu_hw_d3d12.cpp; same picker, same
|
||||
// input set). binalpha drives the BINALPHA -D macro arm of
|
||||
// the Bilinear template: BilinearBinAlpha => true (b1 suffix),
|
||||
// Bilinear => false (b0 suffix).
|
||||
const bool binalpha = (filter == GPUTextureFilter::BilinearBinAlpha);
|
||||
const auto bc = D3DCommon::EmbeddedShaders::PickBatchTexturedBilinearFS(
|
||||
lookup_mode, binalpha, use_dual_source, m_multisamples,
|
||||
m_per_sample_shading, m_disable_color_perspective);
|
||||
fresh = D3D11::ShaderCompiler::CreatePixelShader(m_device.Get(), bc.data, bc.size);
|
||||
}
|
||||
else
|
||||
{
|
||||
// JINC2 / JINC2BinAlpha / xBR / xBRBinAlpha still go through
|
||||
// shadergen + D3DCompile. The else arm will keep shrinking as
|
||||
// the remaining 2 filter templates land their foundation +
|
||||
// activation pairs.
|
||||
//
|
||||
// Construct a per-call shadergen bound to the requested filter
|
||||
// rather than reusing m_shadergen (which is pinned to the
|
||||
// runtime-current m_texture_filtering for the non-batch helpers).
|
||||
|
|
|
|||
|
|
@ -897,14 +897,19 @@ bool GPU_HW_D3D12::CompilePipelines()
|
|||
// D3DCompile to run. Pre-baked templates so far:
|
||||
// - Untextured (texture_mode == Disabled): commits
|
||||
// 9e6f933 / b6d1903 / c01f8ae (re-bake).
|
||||
// - Textured + Nearest: commits 9e4c33d + this one.
|
||||
// The three remaining textured filter templates (Bilinear /
|
||||
// JINC2 / xBR) are still runtime-compiled and land in
|
||||
// subsequent commits. progress.Increment ticks regardless so
|
||||
// the user-facing progress bar reads the same count.
|
||||
// - Textured + Nearest: commits 9e4c33d + a7f5717.
|
||||
// - Textured + Bilinear / BilinearBinAlpha: commits
|
||||
// 269a2a0 + this one.
|
||||
// The two remaining textured filter templates (JINC2 /
|
||||
// xBR and their *BinAlpha variants) are still runtime-
|
||||
// compiled and land in subsequent commits. progress.Increment
|
||||
// ticks regardless so the user-facing progress bar reads the
|
||||
// same count.
|
||||
const bool pre_baked =
|
||||
(static_cast<GPUTextureMode>(texture_mode) == GPUTextureMode::Disabled) ||
|
||||
(cur_filter == GPUTextureFilter::Nearest);
|
||||
(cur_filter == GPUTextureFilter::Nearest) ||
|
||||
(cur_filter == GPUTextureFilter::Bilinear) ||
|
||||
(cur_filter == GPUTextureFilter::BilinearBinAlpha);
|
||||
if (!pre_baked)
|
||||
{
|
||||
ComPtr<ID3DBlob> blob = GetBatchFragmentShader(cur_filter, render_mode, texture_mode);
|
||||
|
|
@ -1337,11 +1342,32 @@ GPU_HW_D3D12::ComPtr<ID3D12PipelineState> GPU_HW_D3D12::GetBatchPipeline(GPUText
|
|||
fs_bc.pShaderBytecode = bc.data;
|
||||
fs_bc.BytecodeLength = bc.size;
|
||||
}
|
||||
else if (filter == GPUTextureFilter::Bilinear ||
|
||||
filter == GPUTextureFilter::BilinearBinAlpha)
|
||||
{
|
||||
// Third pre-baked batch FS slice (269a2a0 foundation + this
|
||||
// commit's activation). The two enum values share a single
|
||||
// HLSL template + 144-blob table via a BINALPHA -D macro;
|
||||
// the picker takes the binalpha bool to select between the
|
||||
// sub-cubes (BilinearBinAlpha => binalpha=true, b1 .inc
|
||||
// suffix; Bilinear => binalpha=false, b0 .inc suffix). Same
|
||||
// shape as the Nearest picker; the use_dual_source bit is
|
||||
// identical between Nearest and Bilinear because the
|
||||
// use_dual_source formula above already collapses
|
||||
// `filter != Nearest` to a single true for every
|
||||
// non-Nearest filter.
|
||||
const bool binalpha = (filter == GPUTextureFilter::BilinearBinAlpha);
|
||||
const auto bc = D3DCommon::EmbeddedShaders::PickBatchTexturedBilinearFS(
|
||||
lookup_mode, binalpha, use_dual_source, m_multisamples,
|
||||
m_per_sample_shading, m_disable_color_perspective);
|
||||
fs_bc.pShaderBytecode = bc.data;
|
||||
fs_bc.BytecodeLength = bc.size;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Bilinear / JINC2 / xBR (and their *BinAlpha variants) still
|
||||
// go through shadergen + D3DCompile. Pre-bake commits for the
|
||||
// 3 remaining filter templates land subsequently.
|
||||
// JINC2 / JINC2BinAlpha / xBR / xBRBinAlpha still go through
|
||||
// shadergen + D3DCompile. Pre-bake commits for the 2 remaining
|
||||
// filter templates land subsequently.
|
||||
fs_blob = GetBatchFragmentShader(filter, render_mode, lookup_mode);
|
||||
if (!fs_blob)
|
||||
return {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue