iris: make the TFB result visible to others
authorAndrii Simiklit <andrii.simiklit@globallogic.com>
Thu, 25 Apr 2019 08:19:46 +0000 (11:19 +0300)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 25 Apr 2019 18:48:04 +0000 (11:48 -0700)
commit4e9592c5fa249df11d9aab665f49f26f3d428d77
tree010da62a3442fe0c9a838dc8fae73af6686773fc
parentaa7306b4cfcae3898f5b8ff2ef3022a0e6329649
iris: make the TFB result visible to others

OpenGL 4.6 Spec:
   "5.3.3 Rules
    .......
    Note: “Updates” via rendering or transform feedback
    are treated consistently with updates via GL commands.
    Once EndTransformFeedback has been issued, any subsequent
    command in the same context that uses the results of the
    transform feedback operation will see the results."

v2: removed a wrong comment
    ( Kenneth Graunke <kenneth@whitecape.org> )

v3: - flush+dirty depends on buffers usage history
    - removed an old hack
    ( Kenneth Graunke <kenneth@whitecape.org> )

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110404
Signed-off-by: Andrii Simiklit <andrii.simiklit@globallogic.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_state.c