Skip to content
Snippets Groups Projects
Commit 105b48c8 authored by Emma Anholt's avatar Emma Anholt Committed by Marge Bot
Browse files

r300: Fix omod failing to increase the number of channels stored.


In dEQP-GLES2.functional.shaders.operator.geometric.reflect.highp_vec2_fragment
and friends this pass would turn:

  0: DP3 temp[1].x, input[1].yx0_, input[0].wy0_;
  1: MUL temp[2].xy, temp[1].xx__, const[0].xx__;

into

  0: DP3 temp[2].x * 2, input[1].yx0_, input[0].wy0_;
  1: MUL temp[3].xy, temp[2].xy__, input[1].yx__;

Note the attempt to use .y of temp[2].  Just bail when we more dst
channels than src channels, since the rewrite can't generate more channels
for us.  Fixes this subset of tests (which I hadn't included in the xfails
until now since results hadn't quite been stable).

Cc: mesa-stable
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
Tested-by: default avatarFilip Gawin <filip.gawin@zoho.com>
Part-of: <mesa/mesa!14405>
parent 946fe209
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment