Android-x86
Fork

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-mesa: コミット

external/mesa


コミットメタ情報

リビジョンc17c8119c3d8b3a8efb04d74db76337929adea11 (tree)
日時2020-02-12 02:27:00
作者Neha Bhende <bhenden@vmwa...>
コミッターDylan Baker

ログメッセージ

svga: fix size of format_conversion_table[]

Since we are now using sparse matrix for format_conversion_table,
we have to make sure we have last entry in table which gives the
sense of required size of format_conversion_table

Fixes: 84db6ba7 ("svga: Drop unsupported formats from the format table")

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
(cherry picked from commit 470e73e7f86b4530cf789a779f43674ecec91881)

変更サマリ

差分

--- a/.pick_status.json
+++ b/.pick_status.json
@@ -589,7 +589,7 @@
589589 "description": "svga: fix size of format_conversion_table[]",
590590 "nominated": true,
591591 "nomination_type": 1,
592- "resolution": 0,
592+ "resolution": 1,
593593 "master_sha": null,
594594 "because_sha": "84db6ba740d376b75e60c3a2a4ac0153c5b0e01a"
595595 },
--- a/src/gallium/drivers/svga/svga_format.c
+++ b/src/gallium/drivers/svga/svga_format.c
@@ -207,6 +207,8 @@ static const struct vgpu10_format_entry format_conversion_table[] =
207207 [ PIPE_FORMAT_L32_SINT ] = { SVGA3D_FORMAT_INVALID, SVGA3D_FORMAT_INVALID, SVGA3D_R32_SINT, TF_XXX1 },
208208 [ PIPE_FORMAT_L32A32_SINT ] = { SVGA3D_FORMAT_INVALID, SVGA3D_FORMAT_INVALID, SVGA3D_R32G32_SINT, TF_XXXY },
209209 [ PIPE_FORMAT_R10G10B10A2_UINT ] = { SVGA3D_R10G10B10A2_UINT, SVGA3D_R10G10B10A2_UINT, SVGA3D_R10G10B10A2_UINT, 0 },
210+ /* Must specify following entry to give the sense of size of format_conversion_table[] */
211+ [ PIPE_FORMAT_COUNT ] = {SVGA3D_FORMAT_INVALID, SVGA3D_FORMAT_INVALID, SVGA3D_FORMAT_INVALID, 0 },
210212 };
211213
212214
旧リポジトリブラウザで表示